Skip Navigation

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

This support ticket is created hace 5 años, 1 mes. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 respuesta, has 2 mensajes.

Last updated by Waqar hace 5 años, 1 mes.

Assisted by: Waqar.

Autor
Mensajes
#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: Inglés (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.