Thursday, March 11, 2021
The Great Tit
Updated: 9. 2. 2022, Added: 11. 3. 2021

Solve "No ACF gallery field data found" when the gallery field is empty with Oxygen conditionals

If you want to hide the gallery field, when your ACF gallery is empty, use this tutorial! 🙂

  1. Wrap Gallery with DIV and add class .gallery-wrapper (set the width of div to 100%)
  2. Open conditionals on the div.gallery-wrapper
  3. Create conditional: Dynamic Data > Advance Custom Field > Your Gallery Field Name
  4. Output type - leave empty
  5. Set conditional rule to "is_not_blank"

Done 🙂

Did I help you? Support me on Patreon!
Beep this article to your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram