Modify the query for Portfolio CPT in Minimum Pro

In the Genesis Minimum Pro theme the portfolio page displays 6 posts per page, some of you have asked how to modify this to show more, say 8 or 10 or as many as you like.

In your theme function.php file you will find this function around line 171.

To change the number of posts per page, simply edit the number to what ever you like, here I changed it to 8.

Modify the sort order

To change the sort order from the default descending to ascending order, add this to the query.

The entire code will look like this

Of cause this is not just limited to the Minimum Pro theme, you can use this in any Genesis theme that has portfolio custom post types.