I want to link my custom post to category archive page. The same category that my post is. I have a query loop with my custom posts and I inserted a button that is suppose to link to: {post_terms_category}. When i click on it I go to an error page that looks like this:
There already is a /category/azija/vietnam/ page that works perfectly and it’s an archive page that displays normal WP posts.
What am I doing wrong here? This has been driving me crazy for the past week now.
What’s even weirder the link actually takes me to the right page if i put {post_terms_category} as a link on “Post title”. But if I put the same {post_terms_category} as a link on button it takes me to error page… is this a bug?
Hi guys,
{post_terms_category} gets outputted as a link by default. If you use it inside a link field, you’ll get a link inside a link, which is not allowed and cannot work.
However, there are two ways to remove the links, as described in the academy:
Use the :plain filter: {post_terms_category:plain}
For anyone that had this issue I ended up using a code block instead of a button using dynamic content , not sure if it’ll work in your use case but here it is: