• 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

Galleries Page using Genesis Portfolio Pro Plugin

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 › Galleries Page using Genesis Portfolio Pro Plugin

This topic is: resolved

Tagged: Genesis Portfolio Pro

  • This topic has 11 replies, 3 voices, and was last updated 8 years, 6 months ago by Brad Dalton.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • April 6, 2017 at 9:54 am #204393
    Michael
    Member

    Greetings-

    I am working on a site at http://www.emileewolseyphotos.com/ and would like the Galleries page to include all of the portfolio items instead of only 6. Is this possible?

    I'm using Gallery Pro child theme with the Genesis Portfolio Pro plugin.

    I have not been able to locate where I would need to change this setting.

    Thanks in advance.
    Michael

    April 6, 2017 at 5:54 pm #204412
    Brad Dalton
    Participant

    Try this

    add_action( 'pre_get_posts', 'limit_portfolio_items' );
    function limit_portfolio_items( $query ) {
    
    if ( $query->is_main_query() && ! is_admin() && is_post_type_archive( 'portfolio' ) ) {
    $query->set( 'posts_per_page', '3' );
    	}
    
    }
    

    And change the number 3 in the code.


    Tutorials for StudioPress Themes.

    April 7, 2017 at 9:13 am #204436
    Michael
    Member

    Hi Brad!

    Thanks man for the help! I tried this code, changing the number to 100, and installed it in the functions.php file of the plugin and the main site (not in both places at the same time), but no changes. Perhaps I am not putting the code in the right place? Or do I have to declare those actions elsewhere?

    Greatly appreciated!
    Michael

    April 7, 2017 at 5:41 pm #204467
    Brad Dalton
    Participant

    Never add code to a plugin. Add the code to your child themes functions file.


    Tutorials for StudioPress Themes.

    April 7, 2017 at 5:55 pm #204470
    Michael
    Member

    Yea, that's what I thought but when I added the code to the functions.php file, changed the number to 100, it didn't help, so I tried the plugin just in case that was what you meant.

    Anyhow, I just added the code to functions.php of the child theme and no effect. Suggestions?
    Thanks again!

    April 7, 2017 at 6:04 pm #204471
    Brad Dalton
    Participant

    Works fine for me.

    Are you wanting to limit portfolio items in the portfolio archive?


    Tutorials for StudioPress Themes.

    April 7, 2017 at 8:17 pm #204478
    Michael
    Member

    No, I want to make the Galleries page display all of the Portfolio Items, so it seems it would be an increase because now it limits to the last 6 Portfolio Items. Emilee wants a Portfolio Item for each photo shoot and for each of these Portfolio Items to display at the Galleries page. Currently there are 9 or 10, which do show up in the Portfolio Archive, but it only shows the last 6 on the Gallery page. I would like them all to show up at the Gallery page where the styling is more to our liking.

    April 7, 2017 at 8:19 pm #204479
    Brad Dalton
    Participant

    Link to the page in question please.


    Tutorials for StudioPress Themes.

    April 7, 2017 at 8:27 pm #204480
    Michael
    Member

    thanks Brad, here it is.

    http://www.emileewolseyphotos.com/galleries/

    April 7, 2017 at 8:33 pm #204482
    Michael
    Member

    Brad, I got it figured out. You got me thinking anyway and I did find that page is controlled by a widget and then the genesis featured custom post....first time dealing with that. Anyhow, I did find the setting in that widget and fixed it. Thanks for your help! You're a blessing to this forum!

    April 26, 2018 at 3:31 am #219289
    josephbrunidge
    Member

    Hi Michael,

    I am having the same issue where not all portfolio items are appearing in the archive. I tried setting the max number to 100 just like you, but only 13 appear. Do you remember how you fixed it?

    Thank you,

    Joe

    April 26, 2018 at 3:52 am #219290
    Brad Dalton
    Participant

    This code overrides the items per page settings added by the plugin


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Galleries Page using Genesis Portfolio Pro Plugin’ 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

© 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