• 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

Change order of elements in loop

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 › Change order of elements in loop

This topic is: resolved

Tagged: loop order

  • This topic has 6 replies, 2 voices, and was last updated 10 years, 8 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 13, 2015 at 3:27 pm #171043
    donmcleman
    Member

    Hi, I’m using a child theme and on single posts the Disqus comments appear at the bottom of the page after the page navigation . I would like to move the navigation after the comments – could you tell me how to do this please?

    I've had to re-post to add the URL as the original post wouldn't allow me to reply.

    http://staging.crosswebideas.com/look-for-a-need-find-a-business-idea.html
    November 13, 2015 at 3:50 pm #171045
    Brad Dalton
    Participant

    It depends on how you added the single post navigtion however it generally requires you change the hook.

    Can you link to the code you used to add the post navigation please.


    Tutorials for StudioPress Themes.

    November 13, 2015 at 3:56 pm #171046
    donmcleman
    Member

    I added the following to functions.php:

    //* Add category post navigation (requires HTML5 theme support)
    add_action('genesis_entry_footer', 'crosswebideas_nav_links', 25 );
    function crosswebideas_nav_links() {
    if( !is_single() ) 
          return;
    echo ('<h2 class="explore">Explore the next article</h2>');
        previous_post_link('<span class="previous-post-link">%link', '%title', TRUE);
    echo ('<div id="hr_explore"></div>');
        next_post_link('<span class="next-post-link">%link', '%title', TRUE);
    }
    November 13, 2015 at 4:00 pm #171048
    donmcleman
    Member

    So I would replace 'genesis_entry_footer' with 'genesis_after_entry'?

    November 13, 2015 at 4:01 pm #171049
    Brad Dalton
    Participant

    Yes, you can use any hook you like. Its simply a matter of changing the hook position.


    Tutorials for StudioPress Themes.

    November 13, 2015 at 4:03 pm #171051
    donmcleman
    Member

    Thank you, now I know what I'm doing 🙂

    November 13, 2015 at 4:05 pm #171053
    Brad Dalton
    Participant

    You're welcome Don.


    Tutorials for StudioPress Themes.

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