Category archive url after adding post_terms_links filter

Hey everyone,

So, I added the post_terms_links filter hook to a site because I don’t want my categories to be linked everywhere.
The problem is, I do want them to be linked to their archives in certain cases, like for example, inside the post.

But, I cannot find a way to link to it. I already created the archive template, and it is working just fine.

Inside the bricks builder dynamic field for the links, I have already used {term_url}, {post_terms_link_category} and even tried with {post_terms_link_category:link}, but with no success.

Has somebody have faced this situation?

Thanks

You could just add some logic within the post_terms_links hook you’re already using to determine if you’re within a single post or not (or whatever your logic needs to be). If you are, return true, otherwise return false.

1 Like