• 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

Genesis Hooks

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 › Genesis Hooks

This topic is: not resolved

Tagged: genesis hooks

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 8 months ago by slydawgg.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 21, 2013 at 1:03 pm #57993
    kkuzik
    Member

    I see that there is an area to add something to the genesis_after_post_content but why does it show on the page if it is for Post Content? Is there a way to just have the content that I want added here to just the posts and not pages as well?

    http://expertsportsperformance.com
    August 21, 2013 at 4:10 pm #58044
    cdils
    Participant

    Hi there,

    In WordPress vernacular, both pages and posts are a considered a "post type", so the genesis_after_post_content hook isn't reserved just for posts. (Here's more info in nerd terms).

    To do what you're wanting, tou'll need to use a conditional statement along with that hook to only display on pages. Here's an intro tutorial to conditional statements. You'll want to use the is_single() check to only show you're info on posts.

    So you might have a conditional that looks like:

    
    add_action ( 'genesis_after_post_content', 'add_my_stuff' );
    
    function add_my_stuff() {
         
        if ( ! is_single )
             return;
    
        echo 'add your text here';
    }
    

    Cheers,
    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    August 21, 2013 at 7:28 pm #58090
    kkuzik
    Member

    Thanks!

    August 27, 2013 at 11:00 am #59062
    slydawgg
    Member

    @cdils - I've tried your method but cannot seem to make it do what I am trying to do. Hopefully you have an idea regarding this issue:

    Category vs Single Featured Images Ideas – Agency

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2026 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