I'm creating a site where people can charter boats for short trips, and I'm using Custompress to display those boats with specs using the custom fields.
I have 26+ fields but not all of them are applicable to every boat. I only want fields that have values to display, so I've been using the
[custom_fields_block] shortcode to do it. The problem is that I don't want to display ALL of the custom fields in the same place; things like the daily rate of the charter and the type of boat I want to display elsewhere, and hopefully not twice on the same page.
I've used the
[ct id="_ct_text_579be2badbbe0" property="value"] shortcode before, but this shortcode always displays, even if the custom field has no values. Same with
[custom_fields_block] _ct_selectbox_4cf582bd61fa4, _ct_text_4cfeb3eac6f1f,... [/custom_fields_block]. I really want to maintain the conditional display of the regular
[custom_fields_block] but still exclude a couple of fields.
Is there a good way to do this?