• 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 › General Discussion › Previous and Next post fields are not displaying in single post

This topic is: not resolved

Tagged: post navigation

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 5 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 22, 2016 at 9:18 pm #182072
    rajkumarsm
    Member

    Hi Everyone,
    I am using Magazine Pro Theme. 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>', '<<&nbsp; %title' );
    			next_post_link( '<div class="next"> %link</div>', '%title >>&nbsp;' );
    		echo '</div>';
    	}
    }
    add_action( 'genesis_before_comments', 'ja_prev_next_post_nav' );
    

    And added some css. 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. Also when I view the post before publishing I could see the Previous and Next Post titles before comment system in my site.

    Please help me to resolve this. Thanks in advance everyone.

    Rajkumar SM
    http://www.softwaretestingmaterial.com

    http://www.softwaretestingmaterial.com
    March 22, 2016 at 11:51 pm #182076
    Brad Dalton
    Participant

    Check the code snippets page for one line of code you can add for this functionality


    Tutorials for StudioPress Themes.

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