- This topic has 2 replies, 2 voices, and was last updated 11 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Showcase and Feedback’ is closed to new topics and replies.
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.
Community Forums › Forums › Archived Forums › Showcase and Feedback › Exec Portfolio
Hello
The portfolio page is limited to 12 portfolio posts - how do I change how many post show on the portfolio page? (I would like 40 to show on the portfolio page)
http://aboutsharks.info/portfolio/
thanks in advance
In your functions.php you'll find this code:
/** 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' ); } }
Try changing 12 to 40. NB: I haven't attempted this myself, but it's where I'd start.
Hi Charles,
Genius, it worked!!
Many thanks for your help.
© 2024 WPEngine, Inc.