Support

Account

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?