Black Friday! Get up to 25% off GP Premium! Learn more ➝

Reply To: Columns in Custom Post Type Archives

Home Forums Support Columns in Custom Post Type Archives Reply To: Columns in Custom Post Type Archives

Home Forums Support Columns in Custom Post Type Archives Reply To: Columns in Custom Post Type Archives

#235856
Tom
Lead Developer
Lead Developer

You need to disable masonry in order for columns to work.

So you would do this:

add_filter( 'generate_blog_masonry','generate_adjust_masonry' );
function generate_adjust_masonry( $masonry )
{
    if ( is_archive() && ! is_post_type_archive( 'portfolio' ) ) :
        return 'false';
    endif;

    return $masonry;
}

add_filter( 'generate_blog_columns','generate_adjust_columns' );
function generate_adjust_columns( $columns )
{
    if ( is_post_type_archive( 'portfolio' ) ) :
        return true;
    endif;

    return $columns;
}

Not 100% sure that will work, but worth a shot.

Let me think about the image thing while you try the above. Can’t come up with anything right now that will do that.