Reply To: Different blog columns layout on specific category?

Home Forums Support Different blog columns layout on specific category? Reply To: Different blog columns layout on specific category?

Home Forums Support Different blog columns layout on specific category? Reply To: Different blog columns layout on specific category?

#202965
Tom
Lead Developer
Lead Developer

I just added the filter, so in GP Premium 1.2.87 you’ll be able to do this:

add_filter( 'generate_blog_get_column_count','generate_custom_column_count' );
function generate_custom_column_count()
{
    if ( is_category( 'Whatever' ) )
        return 3;

    if ( is_category( 'Example' ) )
        return 2;

    // Or else, return the default
    return $count;
}

If you’d like to try it before I release it just shoot me an email 🙂