This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user wanted to check if their custom field is empty using the conditional shortcode and display some content if it is.
We use Legacy for much of our sites, while on the rare occasion we use Blocks....the Conditional Block is very straight forward to use....and works great.
Long time no speak....hope all is well in your part of the world.
That worked GREAT! Thank you.
Final ask....using that code, or more the types field....is there a way to make the contents 'visible'?
Your previous hides the data perfectly however we need to replace it with something. The idea, to use an alternative code to display different contents using the same types filed.
Final ask....using that code, or more the types field....is there a way to make the contents 'visible'?
Your previous hides the data perfectly however we need to replace it with something. The idea, to use an alternative code to display different contents using the same types filed.
From this I gather that you want to display something if the field is empty correct? Rather than removing the information entirely. In this case you can simply check if the field is empty and then display your items.
Yes our legacy mode does have conditionals and other various elements that can be used.
Most features in Blocks were built upon the legacy features or replaced with a simplified UI, for e.g the conditional block vs writing out the conditional shortcode manually.
If there are no further questions you can go ahead and mark this ticket as resolved.