Tell us what you are trying to do?
The site I'm working on has Post types with a lot of different fields. Often the editors have to leave some blank because some info isn't available or not every post type comes with images and videos, others do. When displaying the single posts in the front end, each field has a headline. Sadly, I was not able to find an option to define a headline in the field block, instead I had to make a headline block and then display the field below. The result is, that the headlines are always present, even if the field below has no value and doesn't get displayed. That's bad UX and I'd like to find out how I can only display headlines, if the field below has a value. I hope you can help me with this.
Is there any documentation that you are following?
I haven't found any documentation on this.
Is there a similar example that we can see?
I think it's very common on websites to not display headlines for empty fields.
Hey Shane,
thank you very much, the conditional block is a very powerful tool I had not discovered yet.
This will definitely help me achieve what I want.
However, if I may give that as a feedback:
My intuitive expectation was to find a settings option to give the displayed custom field a name/heading and to set a check for "hide when value is empty". I think this would be far more intuitive and quick.
I totally understand using the the conditional block as well, but maybe my expectation still has some value for you guys ands gals as a UX feedback.