Aleš Sýkora wrote

Category Specific Conditional IF

31. 12. 2019 in

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>


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>


Credits: Bryan Candy, Toolset User Group on facebook.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Oxygen Pro Menu Entire Parent Toggle Dropdown not working
22. 3. 2021 in ,
If you want to have your dropdowns shown in mobile menu with toggle, you are propably using Oxygen’s Pro menu option “Entire Parent Toggles Dropdown”. And it works fine, in most cases. But there is an issue with custom links. If your link uses # then this option doesn’t work. You need to use /# […]
Read More
Aleš Sýkora wrote
Set Dropdown Field Default Value from — Not set — in Toolset With Javascript
30. 8. 2019 in
If you want to change the -not set- text when using the dropdown field in Toolset form, you must use custom JavaScript. Here is an example how to do it.
Read More
Aleš Sýkora wrote
Remove Archive Title prefix in WordPress
28. 5. 2021 in
Put this code in code snippets plugin.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram