Skip Navigation

[Resolved] custom template condition problem settings

This support ticket is created 2 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.

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 2 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#2255823
toolset custom template bug.png

Tell us what you are trying to do?I'm trying to set a condition to show a template.
I choose te custom types that have to show this template, but when I try to set condition in advance mode I get some problem:
this is what I'm talking about : [types field='gr-select'][/types] ( ( '' eq '' ) ).
I'm trying to write in this way: ((' [types field='gr-select'][/types] ' eq ' alfa')) but it' doesn't work
tried ( ( 'wpcf-field-gr-select' eq ' alfa' ) ) but when I accept in backend there isn't any notice near the template info about custom condition and It doesn't work.
After I accet in advanced mode, near post type I set, there is setted to undefinited.
Is it a bug?

I need to show a content template when I custom field of particular post type is "alfa " or "beta"

there is a way to know a shortcode of determinate custom field?

What is the link to your site? offline

Thank you in advance
Regards

#2256023

Hi,

Thank you for contacting us and I'd be happy to assist.

If you're using the advanced conditional editor, your required condition should look like this:


( ( 'wpcf-gr-select' eq 'alfa' ) OR ( 'wpcf-gr-select' eq 'alfa' ) ) 

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar