Home › Forums › General Issues › Shortcode: Using the Hide if empty in a shortcode › Reply To: Shortcode: Using the Hide if empty in a shortcode
My apologies had a typo.
It would be awesome if you could use the original shortcode and add hide_empty =”1″.
For example…
[acf field="field_name" post_id=”options” hide_empty="1"]
If hide_empty=”1″ then Hide shortcode
This would be awesome as a standard option in ACF.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.