Home›Types Community Support›[Resolved] If custom field is blank, add php logic so that the information is not displayed
[Resolved] If custom field is blank, add php logic so that the information is not displayed
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to: Add a custom field to a custom archive.php page. If the field is left empty, I do not want it shown on the archive page. My custom field is a text field for umbrella organization.
What I would like to happen is have else/if logic for if the umbrella-organization field is empty not to show the h4 class field name of Umbrella Organization.
Also if there is an easier way to surface a field name, I'm up for suggestions too.