Skip Navigation

[Resolved] Conditional output – Show View

This support ticket is created 6 years 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 2 replies, has 1 voice.

Last updated by David Gimenez 6 years ago.

Author
Posts
#1135493

Hi.

I have a problem showing a view of repeteable fields with a conditional output.

If the view have posts I want to show that view. If the views haven't post I want to hide it.

The view of repetable fields is [wpv-view name="vista-serveis"] and works fine

This repetable fields have 2 custom fields

wpcf-servei-del-negoci
wpcf-descripcio-servei-negoci

If I insert this conditional it doesn't show anything:

[wpv-conditional if="( $(wpcf-servei-del-negoci) ne '' )"][wpv-view name="vista-serveis"][/wpv-conditional]

The other conditional outputs with custom fields works fine, but not for views of repeteable fields.

Thanks in advanced.

#1135498
#1135499

My issue is resolved now. Thank you!