hide if field is empty
-
Right now I’m using the shortcode format to output the data in a post, in combo with the GT Tabs plugin. I’m doing it this way so I can put different fields in multiple tabs. I’m thinking there has to be a way to do this just with the template, instead of the way I’m doing it.
title—>Status: Active <—the value
exampleThis is the shortcode format I’m using:
<span class="status">Status: </span>[listed]<br>
And just to clarify what I’m entering in the edit post page I’m using these shortcodes, to work with the GT Tabs:
[tab: Property Info] [cft format=0] [tab: Broker & MLS] [cft format=1] [tab: Maps] [cft key=maps] [tab:END]
Now, when I don’t want to have the Status shown, since I’ve got the word ‘Status’ to show even if I don’t have the field, filled in, how do I get the word ‘Status’ to disappear? (You can see the value for ‘Bath’ is empty but the word ‘Bath’ still appears in the link example.) I know it’s because I’ve got it written into the format, but is there an option I’ve missed that I can use in the template to display the title automatically instead of having to write it in the shortcode format like I am?
- The topic ‘hide if field is empty’ is closed to new replies.