Views is a WordPress plugin that lets you easily display content on your website's front-end in any way you choose.
Views User Guides include detailed documentation for creating lists of content, templates for content and archive page and also explain how to create parametric searches for any content type.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 2,341 through 2,355 (of 3,151 total)
The issue here is that the user has a view that lists multiple post types but want to style each post type differently
Solution:
Here is how I achieved this:
Create your view and ensure that you've selected the option "Allow multiple Post types".
Select the post types that you want to be included in the view.
Ensure that you've set the sorting option on the view. See Screenshot. You will need to do this so the posts types are listed together.
On the view loop section you will add a conditional block for your first Post Type. Setup your conditionals as per my conditional screenshot, where you will select the Post Source, in a case of a multiple post type view you can leave this unchanged as it will set the correct information once the view is displayed. However for the source you will select Post Type, then the comparison is done for a static value and just add the post type slug.
In that conditional block you will setup how you want your post type A to display.
Using the block navigator tool. Select the view loop and then add a new conditional block to that loop and repeat steps 4 and 5.
When you are finished you can double check your structure and ensure that all your conditional blocks are within the view loop