Skip Navigation

[Resolved] [wpv-conditional] not working and appearing on the front end

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#623993

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

#624072

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.