The Portfolio CPT archive page in Minimum Pro displays Portfolio entries in 2 columns out of the box. If you are looking to change these to appear in 3 or 4 or 5 or 6 columns, follow these steps:
Step 1
Edit Minimum Pro's archive-portfolio.php
.
Replace
//* Add even/odd post class
add_filter( 'post_class', 'minimum_even_odd_portfolio_post_class' );
function minimum_even_odd_portfolio_post_class( $classes ) {
global $wp_query;
$classes[] = ($wp_query->current_post % 2 == 0) ? 'portfolio-odd' : 'portfolio-even';
return $classes;
}
with
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Awesome, this works for the Portfolio page as I changed from 2 to 3 across. Though within the Portfolio I have three Portfolio Types. Now they all display as single column pages.
:–(
Do you have code to change these as well?
THANKS!
Updated the tutorial to add this line:
Make the same change in
taxonomy-portfolio-type.php
as well.Thanks Sridhar, that worked! In fact I have 4 across on the main Portfolio Archive page, and 3 across on the Portfolio Type Archives pages. Too cool. Randy