Skip Navigation

[Resolved] Set up a view, layout, or template for posts that belong to a specific category

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#593661

Tell us what you are trying to do?
Set up a view, layout, or template (whichever is most appropriate) for posts that belong to a specific category

Is there any documentation that you are following?
checked several tutorial on internet
but most for posts in whole custom post type, not for specific category in that custom post type

Is there a similar example that we can see?

What is the link to your site?

#593795

Dear chien,

I assume we are talking about in the single post, if current post has specific term, then display a different content.

If it is, please try with wpv-conditional shortcode, to check if current post has specific term, see our document:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/#specific
Checking if a post has a specific term assigned