Skip Navigation

[Resolved] conditional doesn´t work

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 10 replies, has 2 voices.

Last updated by heinrichT 3 months ago.

Assigned support staff: Jamal.


I´m creating a single post and I want a field to be shown only when custom field ist not empty.
It´s not working on most of the fields, just one is working perfectly.

Link to a page where the issue can be seen: hidden link

Language field whih are empty shouldn´t be visible.



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting Toolset support.

Instead of testing if the field is empty, test if it has a different value than an empty static value. Check this screenshot hidden link

I did it for French, and it seems to work as expected. Check this screenshot hidden link

I hope this helps. Let me know if you have any questions.


Hi Jamal,

now it's not showing when it should be....


I have a second iusse at the Archiv die-Promoter.

I have an overflow on mobile and can´t fix it. Can you please help me?

Best wishes



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello! Can you please elaborate more on what is not showing?

And regarding the overflow issue on mobile, can you add a screenshot to help me understand it?

Bildschirmfoto 2021-07-19 um 07.06.03.png

Hi Jamal,

1) enclosed you find 2 screenshots where you can see, that dataset contains the information "Franzöisch: fließend" but doens´t show it on the front page.


2) find enclosed the overflow screenshot

New threads created by Jamal and linked to this one are listed below:



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Sorry, my mistake. The NOT operator should not be used on the condition. Check this screenshot hidden link

For support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have created another ticket about the overflow issue on mobile. I'll be posting my reply on it, as I need more details from you.

Bildschirmfoto 2021-07-19 um 14.52.25.png

Hi Jamal,

if I don´t use the NOT operator than the field is visible all the time. Please check screenshot.



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

It's not the NOT of the condition. The custom field "ts_sprache_italienisch" does hold a one-space string, which evaluates as different than empty string and displays the block. Check this screenshot hidden link

I remove the one-space and saved the post, and it does not appear anymore on the frontend. hidden link

I'll let you do the same for the "ts_sprache_polnisch" custom field to see how does it work.

Finally, just to help us help you, please share a URL whenever possible. That way we can go directly to the relevant post/view/content template/archive instead of searching for it or guessing if that's the one with the issue 🙂


Hi Jamal,
Thanks for your support. It is working now.