• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

genesis_after_post or genesis_after_post_content not executing?

Home › Community Forums › Epik Theme Support › genesis_after_post or genesis_after_post_content not executing?

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by Eric.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 28, 2013 at 1:21 pm #8501
    Anup
    Customer

    Hello,

    I am working on displaying a “Previous” and “Next” link at the end of each post.

    http://farmonplate.com/2013/10/17/whole-roasted-snapper/

    My problem is, I have to use the genesis_before_comments to show this. I would like to do this instead by using genesis_after_post_content. But when I do this, the function doesn’t fire. What gives?

    My current code is, which works fine:

    add_action( ‘genesis_before_comments’, ‘eo_prev_next_post_nav’ );

    function eo_prev_next_post_nav() {
    if ( is_single() ) {
    echo ‘<div class=”prev-next-navigation”>’;
    previous_post_link( ‘<div class=”previous”>Previous Recipe: %link</div>’, ‘%title’ );
    next_post_link( ‘<div class=”next”>Next Recipe: %link</div>’, ‘%title’ );
    echo ‘</div><!– .prev-next-navigation –>’;
    }
    }

    October 28, 2013 at 9:51 pm #8518
    Eric
    Customer

    It’s probably because you’re using the XHTML version of the code with an HTML5 theme. Check SP’s hook list for the newer version of this code – http://my.studiopress.com/docs/hook-reference/ and disregard the ones labeled (XHTML)


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework