• 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

Executive Pro portfolio achive page navigation

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 › Executive Pro portfolio achive page navigation

This topic is: not resolved

Tagged: archive, executive pro, navigation, portfolio

  • This topic has 8 replies, 3 voices, and was last updated 10 years, 1 month ago by Brad Dalton.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • June 8, 2015 at 5:31 am #155328
    Bart van Maanen
    Participant

    The numeric navigation for the portfolio archive page is showing up after 6 portfolio pages. But there are 12 pages on the archive page, and 13 in total (and more to come).

    I can not find this specific issue in the forums (yet). I can not find these settings in archive-portfolio.php file either.

    How can I change the settings to have the navigation show up after the portfolio page thumbnails?

    Thanks for any help here.

    http://stoopvandeventer.nl/portfolio/
    June 8, 2015 at 6:00 am #155334
    jeffreyd00
    Member

    Try going to Settings | Reading and then change the number of posts to display and see if that resolves the odd placement of the pagination navigation.

    June 8, 2015 at 7:30 am #155356
    Bart van Maanen
    Participant

    Hi Jeffrey,
    I already tried this, but alas. This also seems to me the settings for posts, not for a CPT like the portfolio pages.
    Nevertheless, thanks for your response!

    June 8, 2015 at 7:37 am #155357
    jeffreyd00
    Member

    Look in the theme's functions.php it's in there

    //* Change the number of portfolio items to be displayed (props Bill Erickson)
    add_action( 'pre_get_posts', 'executive_portfolio_items' );
    function executive_portfolio_items( $query ) {
    
    	if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'portfolio' ) ) {
    		$query->set( 'posts_per_page', '12' );
    	}
    
    }
    June 8, 2015 at 7:49 am #155359
    Bart van Maanen
    Participant

    Allright, I see it. Now I've changed it to '9' posts, which works. Yet the page navigation still shows up after 6 pages.

    June 8, 2015 at 7:53 am #155361
    jeffreyd00
    Member

    maybe just show all posts and call it a day?

    June 8, 2015 at 7:54 am #155362
    Bart van Maanen
    Participant

    Tried something different now. I saw one of the page titles was pretty long and I shortened it. Now the pagination shows up correctly. Still, page titles are not supposed to influence the page navigation. What do you think?

    June 8, 2015 at 8:01 am #155364
    jeffreyd00
    Member

    Well maybe some other forum member can help you at this point. Sorry I wasn't able to resolve.

    June 8, 2015 at 10:34 am #155381
    Brad Dalton
    Participant

    Could be the Reading Settings or Genesis > Theme Settings > Content Archive settings overriding pre_get_posts


    Tutorials for StudioPress Themes.

  • 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

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