Category Specific Conditional IF

Author: Aleš Sýkora, 31. 12. 2019

If you need to use conditional IF to display posts for some specific category, here is example conditional how to do that:

[wpv-conditional if="( CONTAINS(#(category),'homecoming-series-upcoming-events') )"]

<h2>Homecoming Series</h2>

[wpv-conditional]

If you want to display posts not in category, then use ! as negotiation:

[wpv-conditional if="( !CONTAINS(#(category),'homecoming-series-upcoming-events') )"]

<h2>Not Homeacoming Series</h2>

[wpv-conditional]

Credits: Bryan Candy, Toolset User Group on facebook.