Hi,
I’m experimenting with the layout of the archive items and details pages. When adding shortcodes or block placeholders for the address, custom fields and so on, the fields that are empty or not used or not related to the CPT are not shown.
Now if I convert these blocks to html to add them in a grid or a striped list, all fields are shown. I attached 3 screenshots to explain better what I mean.
In the code for the archive items, all fields are shown for the places and the events. Noe for the events there are custom fields that I would like to hide for the places, like the venue name and the date/time of the event. At the moment, as you can see in the screenshot for the places, there are two empty spaces between the dividers.
Is there a way/code to hide fields that are not filled in or related?
Thank you,
Tony