Cache issue with WP_Query and custom field filtering
Found a fix. Apparently CMB doesn’t use integers while saving values to database from custom checkboxes, but rather adds an on string when a checkbox is checked. Also when a previously checked checkbox is unchecked, the corresponding row isn’t removed from wp_postmeta table, but remains there with an empty value. So this will return all … Read more