Skip Navigation

[Resolved] Content template does not react to if condition

This support ticket is created 3 years, 11 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.

This topic contains 1 reply, has 1 voice.

Last updated by nathanB-3 3 years, 11 months ago.

Author
Posts
#1942067

I use a content template in a view. However, the template does not react to if conditions.

Consider the code:

[wpv-conditional if="('1'='2') " ] test test test [wpv-post-body view_template="show-related-guide-post-id" item="@job-for.child"]</p>[/wpv-conditional]

"test test test" does not display but the content template does display.

Is there a way to restrict the display of a content template to some condition?

Best, Nathan

#1942251

My issue is resolved now. I am stupid, it was an error on my end!