Aleš Sýkora / December 31, 2019 / 0 comments
Category Specific Conditional IF
1 min read / WordPress / Share on: Twitter, LinkedIn, Facebook
Post summary: If you need to use conditional IF to display posts for some specific category, here is example conditional how to do that: If you want to display posts not in category, then use ! as negotiation: Credits: Bryan Candy, Toolset User Group on facebook.
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.
Fuel my passion for writing with a beer🍺
Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻