I have a working php ajax custom form (using _POST and js). I can’t figure how to filter by checked checkbox items. so if a user checks one/multiple items in the form front end, it would match posts with the same field choices checked. It does work for me if i’m using a select dropdown instead of a checkbox items in the form. My checkbox field is ‘weather’.
and in the ajax function in the functions.php file, this is the code that does work for me if it was a select dropdown in the form, but right now it always displays all posts, meaning if a checkbox is checked/unchecked it makes no difference.