Hi.
Can someone help to explain once and for all how to query “bricks_template” CPT in the Bricks loop builder?
I am using this code that it seems do nothing, because “bricks_template” CPT do not appear in the posts list dropdown in the editor:
add_filter( 'register_post_type_args', 'customize_my_post_type_labels', 10, 2 );
function customize_my_post_type_labels( $args, $post_type ) {
if ( $post_type !== 'bricks_template' ) {
return $args;
}
$args['public'] = true;
$args['publicly_queryable'] = true;
return $args;
}
Thanks
Jorge