Home › Forums › ACF PRO › if (have_rows()) not working › Reply To: if (have_rows()) not working
In looking at wp_postmeta via phpMyAdmin, I see that for the Post in question (where I have nothing entered in the repeater field but the HTML is still being displayed), there is actually a ‘1’ in the database…..? If I haven’t entered anything into the field when adding/editing a post, why is a ‘1’ being saved to the database? I could understand a ‘0’ or ‘null’, both of which could be returned as false for a boolean ‘if’ test, but ‘1’ returns true, which means even if no data is entered the field is never ’empty’.
Any chance this could get changed in an update so that it either saves nothing to the database (seems like this should be the preference) or if something must be saved, either null or 0?
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.