I am trying to: show some content when an evaluated expression is true and hid it when false
I expected to see: the content appear
Instead, I got: the shortcode and evaluation as follows : Volunteer compliance confirmed : [wpv–conditional if=”(‘1493769600′ gt ’27’ )”]Larger – [/wpv–conditional]
For simplicity and to ensure that I hadn't made an error with the comparator value, I evaluate a user field to see if it is greater than the constant 27 but in a true beployment, 27 would be replaced by a variable evaluating today minus 2 months or similar.
The code used is [wpv–conditional if="('[types usermeta='presenter-compliance-confirmed' output='raw'][/types]' gt '27' )"]Larger - [/wpv–conditional]Presenter compliance confirmed :[types usermeta="presenter-compliance-confirmed"][/types]
So I expected the output to be Larger - Presenter compliance confirmed 16007890 or similar.
The code is contained in a fusion builder text block but I've treid using just a regular page and the same result occurs.
Thanks
Hi, please try these troubleshooting steps first:
- Temporarily activate a default theme like Twenty Seventeen, then deactivate all plugins except Types, Views, and Layouts
- Test the conditional again in a basic Page
- If the problem is resolved, reactivate your parent theme, then child theme, then plugins one by one until the conflict is revealed
- If the problem was not resolved, I'll need to take a closer look. Private reply fields are enabled here.