Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
mattsmansfieldMember
Never mind - I figured it out. I needed to replicate some code in the child theme's functions.php:
//* Change the number of portfolio items to be displayed (props Bill Erickson) add_action( 'pre_get_posts', 'minimum_portfolio_items' ); function minimum_portfolio_items( $query ) { if ( $query->is_main_query() && !is_admin() && is_post_type_archive( 'portfolio' ) ) { $query->set( 'posts_per_page', '6' ); } }
Here's the code I added:
//* Change the number of portfolio-category items to be displayed (props Bill Erickson) add_action( 'pre_get_posts', 'minimum_portfolio_category_items' ); function minimum_portfolio_category_items( $query ) { if ( $query->is_main_query() && !is_admin() && is_tax( 'portfolio-category' ) ){ $query->set( 'posts_per_page', '6' ); } }
mattsmansfieldMemberScotm - did you ever solve this? Thanks to your excellent link above, I have everything worked out, but the grid is not working on the taxonomy archive page - each portfolio item appears on a page by itself with a "Next" page numerical navigation beneath it.
Thanks in advance for any help you can provide!
-Matt
mattsmansfieldMemberScotm - did you ever solve this? Thanks to your excellent link above, I have everything worked out, but the grid is not working on the taxonomy archive page - each portfolio item appears on a page by itself with a "Next" page numerical navigation beneath it.
Thanks in advance for any help you can provide!
-Matt
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)