text block ‘required to render’

  • We have a CPT with a custom field called ‘company_address’.

    We display a field dynamically in a text block using {{post_meta key:company_address}} with the ‘required to render’ option enabled (because not everyone has this field filled in)

    But we also have the text ‘Address:’ in another text block located above the previous one.

    How can we ensure that the ‘Address:’ text block is also ‘required to render’ if ‘company_address’ does not exist?

  • Hi there,

    You can use the Block Conditions feature for this. First, create a condition like the one shown here:

    Then simply apply that condition to the Text block. If no company address is available, the entire block will be hidden automatically.

  • thanks

  • You’re welcome!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.