WP SITES

3086 Coded Tutorials & 291 Plugins

Override Genesis Portfolio Pro Plugin Items Per Page Setting

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' );

Related Code Snippets

2 responses to “Override Genesis Portfolio Pro Plugin Items Per Page Setting”

  1. Cemal Ekin Avatar
    Cemal Ekin

    Hello Brad, I am a new subscriber and do not use Facebook. I tried sending an e-mail which has not yet been delivered to webmaster@example.com. Is that really the correct address to use? I am using this post for no particular reason other than it was the first one on a search for “portfolio.”

    Thank you,

    Cemal

    1. Brad Dalton Avatar
      Brad Dalton

      Hello Cemal. Sorry about that. I removed the contact form because i was getting spam and replaced it with a link to my email but forgot to change the address to brad@wpsites.net. Fixed now. How can i help you?

Leave a Reply

New Plugins