Problem:
How can I check a specific post field value in a Conditional HTML?
Solution:
You can use the GUI and check against a Views Post Field of your choice.
Then, after inserting the HTML Condition, edit the Views Post Fields Shortcode to address the specific ID of the Post.
Example:
[
wpv-conditional if="( '[types field='single-line' id='15'][/types]' ne '' )"]show me[/wpv-conditional]
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 4 replies, has 3 voices.
Last updated by Beda 5 years, 6 months ago.
Assisted by: Beda.