I am using {post_terms_category}
in Bricks Builder to display the categories of a post. By default, it renders all assigned categories with links.
To display only one category, I used {post_terms_category:1}
, which successfully shows only the first term. However, I encountered two issues:
- The category is displayed without a link to its archive page.
- A comma (“,”) is added at the end of the term.
I want to display only one category with a clickable link to its archive page and remove the trailing comma. How can I achieve this ?
I am using this in query loop and the element is meta data
Any help would be greatly appreciated!