Support

Account

Home Forums General Issues Shortcode: Using the Hide if empty in a shortcode Reply To: Shortcode: Using the Hide if empty in a shortcode

  • John, if not incorporating all options into acf standard shortcode

    [acf field="field_name" post_id="options" hide_empty="1" html_tag="div" class="my-class"]

    Then create another shortcode acf_html for adding the html

    [acf_html field="field_name" post_id="options" hide_empty="1" html_tag="div" class="my-class"]

    Would output:

    <div class="my-class">Field Value</div>