How do I unlink category links within Bricks dynamic data for my frames?

When you dynamically query categories of the current post (via a template or query loop), Bricks wraps each category with a link to that category’s archive page.

Sometimes this is desirable and sometimes it isn’t.

If you want to turn this feature off, you can use the following filter:

// Disable links for all the {post_terms_my_taxonomy} tags
add_filter( 'bricks/dynamic_data/post_terms_links', '__return_false' );

If you want to turn this feature off for a specific category, you can use the following filter:

add_filter( 'bricks/dynamic_data/post_terms_links', function( $has_links, $post, $taxonomy) {
  // Disable links for my_custom_tax taxonomy
  return $taxonomy !== 'my_custom_tax'; 
}, 10, 3);

We recommend adding this code via WPCodeBox.