Site logo

Archived topic

GPP blog layout for CPT template hook shortcode

1 reply · Started by Radek on January 6, 2022

Viewing posts 1–2 of 2

Hi David, is there a way to use blog (column) settings for CPT loop shortcode made by Your Github function (db_custom_loop_shortcode) ? Something like we can use for CPT archive page via filter:

add_filter( 'generate_blog_columns','tu_portfolio_columns' );
function tu_portfolio_columns( $columns ) {
    if ( is_post_type_archive( 'CPT_name' ) ) {
        return true;
    }

    return $columns;
}

Thanx a lot

Hi there,

no the theme blog columns won't work as the Shortcode doesn't contain the necessary HTML or the Filters to do that.
I built it as a simple work around whilst waiting for the GB Query Block.

If you need some assistance with the shortcode grid CSS then i am happy to help.

Let me know

This archived topic is closed to new replies.