• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add items that goes at the end of every posts

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to add items that goes at the end of every posts

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 12 years, 8 months ago by AnitaC.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 3, 2013 at 1:31 am #23865
    Ted
    Member

    I would like to add some items (either some text or banner image or opt-in form) at the end of each and every posts, and only on blog posts and not on pages. How can I do this? Is there anywhere central that I can just add this in one time and it appears every single time a blog post is done?

    Also, there might be cases where I want certain blog posts to feature only certain type of content at the end of the blog post, and not the general content for the other posts, how can I achieve this?

    I used to be able to do the above using hooks using the thesis theme, but for genesis, please advice how I can do these?

    March 3, 2013 at 10:46 am #23910
    AnitaC
    Keymaster

    You can do this with hooks also with Genesis Simple Hooks - http://www.studiopress.com/plugins/simple-hooks. And here is also the hook guide - http://genesistutorials.com/visual-hook-guide/.


    Need help with customization or troubleshooting? Reach out to me.

    March 4, 2013 at 5:51 am #24024
    Ted
    Member

    I installed the plugin already, but what do the following mean? Should I tick those or not?

    Execute Shortcodes on this hook?
    Execute PHP on this hook?

    And where can I get the tutorial on how to insert items in certain posts only, or how can I exclude certain items from specific posts?

    March 4, 2013 at 6:02 am #24027
    Ted
    Member

    Another thing, currently, for the hook genesis_after_post_content, it posts whatever I want into the end of the content after the tags listing. Is there anyway I can make these go right before the tags listing?

    March 4, 2013 at 6:35 am #24030
    AnitaC
    Keymaster

    @Ted, I am not that great but Nick always says, "you need to use conditional tags." Here is the WordPress Conditional Tags information you would need - http://codex.wordpress.org/Conditional_Tags.

    For executing the PHP, if you put PHP code in there - you need to check the box Execute PHP on this hook. The same with the shortcode, if you add a Shortcode, you need to Execute Shortcode on this hook.

    For the location, play around with the different locations like genesis_after_post or genesis_after_content.

     


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble