• 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

add next/previous links to executive portfolio

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 › add next/previous links to executive portfolio

This topic is: not resolved

Tagged: Executive Portfolio, next previous

  • This topic has 10 replies, 3 voices, and was last updated 10 years, 5 months ago by rfmeier.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • June 6, 2013 at 1:50 pm #44409
    cway
    Member

    I'm using the Executive 2.0 theme. Does anyone know if it's possible to add Next and Previous links in the portfolio, such as on this page:

    http://www.trentstudios.com/portfolio/responsive-website-design-for-team-b-o-b/

    ?

    Thanks!

    Cameron

    http://www.trentstudios.com/portfolio/responsive-website-design-for-team-b-o-b/
    June 6, 2013 at 2:45 pm #44421
    rfmeier
    Member

    Hello,

    This will add the single post navigation.

    add_action( 'genesis_after_endwhile', 'genesis_prev_next_post_nav' );

    You can go from there.


    Ryan Meier – Twitter

    June 6, 2013 at 2:52 pm #44423
    cway
    Member

    Hey, Ryan. Thanks for the quick response.

    That worked for getting navigation into the regular blog posts. See http://www.trentstudios.com/2013/03/a-new-intern-for-trent-studios/

    But not for the portfolio. See http://www.trentstudios.com/portfolio/renovative-solutions-logo-and-business-card-design/

    June 6, 2013 at 2:58 pm #44426
    rfmeier
    Member

    The action will have to be added within the scope of a single portfolio post. Do you have a category portfolio single post file?


    Ryan Meier – Twitter

    June 6, 2013 at 3:02 pm #44429
    cway
    Member

    I have single-portfolio.php

    June 6, 2013 at 3:05 pm #44430
    rfmeier
    Member

    Try pasting the code there, make sure it is above the genesis() function.


    Ryan Meier – Twitter

    June 6, 2013 at 3:11 pm #44433
    cway
    Member

    Done. Didn't do anything.

    June 6, 2013 at 3:16 pm #44436
    rfmeier
    Member

    Unfortunately, since I do not have any source code. I cannot help beyond that. I am just taking guesses at this point.


    Ryan Meier – Twitter

    June 6, 2013 at 9:49 pm #44470
    Brad Dalton
    Participant

    Tested and works

    Code not displaying? Grab it on Github.

    Ryan's code is for use in HTML 5 supported child themes only and links all standard single posts together which may exclude custom post types.

    Be interested to see how you style the links @cway.


    Tutorials for StudioPress Themes.

    June 6, 2013 at 10:26 pm #44471
    Brad Dalton
    Participant

    Change the hook for HTML 5 enabled child themes to something like genesis_entry_footer


    Tutorials for StudioPress Themes.

    June 7, 2013 at 5:16 am #44492
    rfmeier
    Member

    Thanks, Brad. I didn't consider the default navigation wouldn't work with custom post types.


    Ryan Meier – Twitter

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

© 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