Home › Toolset Professional Support › [Resolved] logic not empty still shows field
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.
Tagged: Views plugin
This topic contains 1 reply, has 1 voice.
Last updated by Marisa 5 years, 7 months ago.
[wpv-conditional if="( NOT(empty($([wpv-post-excerpt]))) )"]
<h4 class="white" style="margin-top:0; margin-bottom:0; padding-bottom:0;">[wpv-post-excerpt length="20"]<h4>
See how it returns only the empty fields in the screen shots? It's backwards of what I'm asking it to do. If I try to reverse it, they all disappear.
I feel like this code is very simple, so if you can point out the error of it, maybe that will help me.
If not, I can clone the site to a staging version (right now it is local), and share logins and urls with you.
But if you see a problem with my code let me know.
I removed the brackets.
I also created a custom fields to use instead of the default excerpt, with which it just didn't work.
So new code is:
[wpv-conditional if="( NOT(empty($(sticker))) )"]
<h4 class="white" style="margin-top:0; margin-bottom:0; padding-bottom:0;">[wpv-post-field name="sticker"]<h4>
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support