• 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

Previous and Next post fields are not displaying in single post

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 › Design Tips and Tricks › Previous and Next post fields are not displaying in single post

This topic is: not resolved

Tagged: post navigation

  • This topic has 4 replies, 4 voices, and was last updated 10 years, 2 months ago by Susan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 21, 2016 at 8:44 am #181970
    rajkumarsm
    Member

    Hi Everyone,
    I have added the following function in my functions.php

    function ja_prev_next_post_nav() {
    	if ( is_singular( 'post' ) ) {
    		echo '<div class="prev-next-navigation">';
    			previous_post_link( '<div class="previous"> %link </div>', '<<  %title' );
    			next_post_link( '<div class="next"> %link</div>', '%title >> ' );
    		echo '</div>';
    	}
    }
    add_action( 'genesis_before_comments', 'ja_prev_next_post_nav' );
    

    And added some css for looking. It worked very well in my local system. I transferred both functions.php and style.css through ftp and verified in my site http://www.softwaretestingmaterial.com
    The same is not working in my site. I have looked in view source. But no such code in view source.
    In local system, my code is displaying after this

    </footer>
    </article>

    Where as in my site disquss code is displaying after

    </footer>
    </article>

    For your kind information, I am not using disquss comments system in my local system.

    Please help me to resolve this..

    Thanks in advance everyone.

    Rajkumar SM
    http://www.softwaretestingmaterial.com

    http://www.softwaretestingmaterial.com
    March 21, 2016 at 9:23 am #181974
    Victor Font
    Moderator

    Can you clean up the code and get rid of the HTML entities so it is readable?


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 21, 2016 at 10:39 am #181981
    rajkumarsm
    Member

    Sorry, the code which I added in functions.php mentioned below

    function ja_prev_next_post_nav() {
    	if ( is_singular( 'post' ) ) {
    		echo '<div class="prev-next-navigation">';
    			previous_post_link( '<div class="previous"> %link </div>', '<<&nbsp; %title' );
    			next_post_link( '<div class="next"> %link</div>', '%title >>&nbsp;' );
    		echo '</div>';
    	}
    }
    add_action( 'genesis_before_comments', 'ja_prev_next_post_nav' );

    Thanks
    Rajkumar SM
    http://www.softwaretestingmaterial.com

    March 23, 2016 at 12:52 am #182077
    Brad Dalton
    Participant

    Is this the same question http://www.studiopress.community/topic/previous-and-next-post-fields-are-not-displaying-in-single-post-2/


    Tutorials for StudioPress Themes.

    March 23, 2016 at 7:26 am #182091
    Susan
    Moderator

    Closing this, as it is a duplicate of this: Is this the same question http://www.studiopress.community/topic/previous-and-next-post-fields-are-not-displaying-in-single-post-2/

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Previous and Next post fields are not displaying in single post’ is closed to new 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