Deactivate links in Posts fields - for Categories

Hi there.

In the Posts element and the ‘fields’ section - it´s possible to show the categories via {post_terms_category}. By nature the categories have links.

Is it posible to deactivate the links to these categories? Cause there are no pages for them - needed.

For example the Post Title can be linked with {post_title:link}.

Is there also a way to ‘unlink’?

Hi Sascha,
Unfortunately, this is not possible right now, but you can write your own PHP function and use it inside a loop within the code block or inside of your child theme functions.php and echo it using the dynamic data syntax (since Bricks 1.4). We may be able to introduce a filter for this soon.

Something like this works in a loop for example:

<?php

$post_categories = wp_get_post_categories( get_the_ID(), array( 'fields' => 'names' ) );
 
if( $post_categories ){ 
  foreach($post_categories as $name){
    echo $name;
  }
}

?>

Best regards,
timmse

Hi Stefan.

Thx again for taking care and deliver a fast solution!