This code enables you to override the “Items Per Page” setting added to each portfolio archive edit screen when you install the Genesis Portfolio Pro plugin.
Here’s the code you can add to your child themes functions file to set items per page for the portfolio custom post type archive and custom taxonomy type archives.
Show All
To show all items on 1 page, modify the last line in the above code like this :
$query->set( 'posts_per_page', '-1' );
Leave a Reply
You must be logged in to post a comment.