I am trying to:
Create an archive loop which will display items across several different post types. I'd like to visually differentiate between them, e.g. have the stories, news and institutions each display in a way that makes it obvious what they are (have different icons, maybe different backgrounds).
Link to a page where the issue can be seen: hidden link
I expected to see:
Posts of different types look different in the loop output
Instead, I got:
All posts of all types look identical
Hello. Thank you for contacting the Toolset support.
You can use [wpv-conditionnal] shortcode to display the conditional output. To check the post type of the current post, you can use the [wpv-post-type] shortcode.
For example:
[wpv-conditional if="( '[wpv-post-type]' eq 'post' )" ]
This post is belongs to post type post.
[/wpv-conditional]
[wpv-conditional if="( '[wpv-post-type]' eq 'student' )" ]
This post is belongs to post type student.
[/wpv-conditional]
Where:
- post is a post type slug. you should change it as required.