• 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

Agentpress Next & Previous listings

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 › Agentpress Next & Previous listings

This topic is: resolved

Tagged: Agentpress, next, previous

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 29, 2013 at 9:43 am #53070
    octoberstone
    Member

    Hi, would anyone know if it is possible to display next listing & previous listing using the Agentpress theme.

    I have been able to get it to work on posts picked up from discussions on this forum - see: http://www.fairbuild.co.uk/news/post-3/ using

    //* Add post navigation (requires HTML5 theme support)
    add_action( 'genesis_before_post_content', 'my_post_nav', 5 );
    function my_post_nav() {
        if( ! is_single() )
            return;
     
        previous_post_link('<div class="single-post-nav previous-post-link">%link</div>', 'Previous news article', TRUE);
        next_post_link('<div class="single-post-nav next-post-link">%link</div>', 'Next news article', TRUE);
    }
    http://www.fairbuild.co.uk/news/post-3/
    July 29, 2013 at 7:04 pm #53148
    Brad Dalton
    Participant

    You will need to add HTML 5 support to your child theme, Install Genesis 2.0 and convert your theme to HTML 5

    You could also change the conditional tag


    Tutorials for StudioPress Themes & WooCommerce.

    July 30, 2013 at 5:56 am #53191
    octoberstone
    Member

    Hi Brad, many thanks for this. Got it to work with a bit of tweeking. I updated to Genesis 2.0 and updated the child theme 'Agentpress' for html5.

    The instructions for updating the child theme were missing a vital piece of php though, to turn on the turn on HTML5 Markup - which I found here: http://dynamiktheme.com/genesis-xhtml-to-html5-css-converter/ leading on to here: https://gist.github.com/StewartChamberlain/5637847#file-add-html-5-support-to-genesis-2-0-child-themes ... if anyone is interested.

    July 30, 2013 at 11:02 pm #53318
    Brad Dalton
    Participant

    The list of resources i linked to also includes a link to this PHP http://www.briangardner.com/code/add-html5-markup/


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Agentpress Next & Previous listings’ 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

© 2023 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