Skip Navigation

[Resolved] Using wpv-conditional within Divi

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1264051

Tell us what you are trying to do?
I want to conditionally display some text IF a certain URL Param is set

Is there any documentation that you are following?
ToolSet documentation

Is there a similar example that we can see?

What is the link to your site?
Content is hidden to general users

I basically want to display a message if a certain URL param is sent example ?confirm=1
I am trying to figure out what will the wpv-conditional code be INSIDE a divi module so I don't need to create a view for something as simple as this. Basically I need help understanding how to use
{!{wpv-conditional if="('1' eq '1')"l}!}
inside divi module to display a message if URL param 'confirm' is set to 1

#1264173

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Soniya,

Thank you for getting in touch.

You can achieve this by using our [wpv-search-term] shortcode inside our conditional shortcode.

Take a look at the documentation below for more info on this shortcode.

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

Thanks,
Shane

#1271169

Inside Divi modules, shortcodes are formatted and presented as {!{wpv-conditional if="('1' eq '1')"l}!}

I tried using search term as you have specified but it doesn't work. Could youplease share a working sample?

#1271727

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Soniya,

Here is an example.


{!{wpv-conditional if="( '{!{wpv-search-term param='some-param'}!}' eq '' )"}!} {!{/wpv-conditional}!}

Please try this and let me know if it helps.
Thanks,
Shane