# Query Loop Bricks Templates

**URL:** <https://forum.bricksbuilder.io/t/query-loop-bricks-templates/15478>\
**Category:** How To\
**Tags:** templates, how-to\
**Created:** [September 18, 2023, 1:36pm UTC](https://forum.bricksbuilder.io/t/query-loop-bricks-templates/15478 "2023-09-18T13:36:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![horizzons](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/h/ee59a6/32.png) [@horizzons](https://forum.bricksbuilder.io/u/horizzons)\
**Post date:** [September 18, 2023, 1:36pm UTC](https://forum.bricksbuilder.io/t/query-loop-bricks-templates/15478/1 "2023-09-18T13:36:39Z")

</div>

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:

```auto
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
