- Views78 times
- Answers5 answers
I have this situation:
I create Custom-Field-1, Custom-Field-2. Only the first one is required, the second optional.
Now I’m using a shortcode to display them both in 1 block like this:
The problem is that, if the second custom field is empty, the whole block disappears. How can I make it the I show both fields if they are filled out, or only 1 if the other one is empty?