Skip Navigation

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

This support ticket is created 5 years, 1 month 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1217494

I am trying to:
Use the [wpv-conditional] shortcode within a Content Template

Link to a page where the issue can be seen:
hidden link

I expected to see:
Content showing or not showing based on whether the terms of the shortcode are met.

Instead, I got:
[wpv-conditional] not working and appearing on the front end

Before submitting this ticket I have:
- Disabled all plugins except Types and Views
- Tried various themes
- Enabled wp-debug
- Enabled Toolset debug mode

#1218320

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Simon,

Thanks for asking! I'd be happy to help.

I've checked the content template "Template for Books" ( hidden link ) and noticed that there is a typo in the conditional code shortcode that is being used.

There are 9 instances of the incorrect shortcode name "wpv–conditional" and only 2 correct instances "wpv-conditional".
(note the difference in the separating characters "–" & "-").

Please update them all and they'll start rendering correctly.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.