• 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

Adding previous/next to the bottom of single post pages

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 › Adding previous/next to the bottom of single post pages

This topic is: not resolved
  • This topic has 8 replies, 4 voices, and was last updated 11 years, 8 months ago by mystylevita.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • July 12, 2014 at 11:35 am #114034
    lovebugs
    Participant

    I have the code that I added using simple hooks to the space for after post content:

    <div class="navigation">
    <div class="alignleft">
    <?php previous_post('&laquo; &laquo; %',
    'Toward The Past: ', 'yes'); ?>
    </div>
    <div class="alignright">
    <?php next_post('% &raquo; &raquo; ',
    'Toward The Future: ', 'yes'); ?>
    </div>
    </div>
    
    <center><img src="http://karenard.com/blog/wp-content/uploads/2013/08/flowerdivider3.jpg"></center>

    it did what I wanted it to do, but it also added it to the home page. Is there a way to turn it off on all pages except single post pages?

    thanks!

    http://karenard.com/blog
    July 12, 2014 at 12:19 pm #114045
    Brad Dalton
    Participant

    No need to use that code.

    Simply add this to your functions file

    add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );
    

    Only works on HTML 5 themes


    Tutorials for StudioPress Themes.

    July 15, 2014 at 8:46 am #114392
    lovebugs
    Participant

    i don't think prose is an HTML 5 theme though - I tried adding this but nothing happened.

    July 15, 2014 at 9:20 am #114396
    Brad Dalton
    Participant

    Yeah, Only works on HTML 5.


    Tutorials for StudioPress Themes.

    July 15, 2014 at 12:21 pm #114414
    Genesis Developer
    Member

    try this once

    add_action( 'genesis_after_post', 'genesis_prev_next_post_nav' );


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 15, 2014 at 5:50 pm #114467
    lovebugs
    Participant

    thanks! That worked perfectly.

    July 15, 2014 at 6:34 pm #114471
    lovebugs
    Participant

    Is there a way to center this, or have the right side one aligned right? It doesn't look quite right:
    http://karenard.com/blog/los-angeles-maternity-photography-2/

    September 26, 2014 at 2:07 pm #125857
    mystylevita
    Member

    I just added this code and it works, but not sure how to edit it to make it larger. Also looking to add my long grey separator line below the tags and categories, to allow for the next/prev posts. Any ideas?

    September 26, 2014 at 2:11 pm #125858
    mystylevita
    Member

    And when I add //* Customize ..... (filled in some stuff here) my entire site went blank and can't even load it or the admin panel...

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ 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