Query multiple meta values at the same time :

You’ll need to change your search form, PHP uses fieldname[] notation to accept multiple values for a parameter name. <input type=”checkbox” name=”modele_du_processeur[]” value=”Core i3″ /> <input type=”checkbox” name=”modele_du_processeur[]” value=”Core i5″ /> <input type=”checkbox” name=”modele_du_processeur[]” value=”Core i7″ /> Once that’s done, you will get an array in $_GET[“modele_du_processeur”], so you can work with $args = array( … Read more

Meta Query returning empty array

As /u/Nicolai suggested in the question comment section, it’s always a good idea to add in post_status not only for validity but for speed purposes too. It could look like this: $practice_args = array( ‘post_type’ => ‘sf-location’, ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘practice_id’, ‘value’ => $current_practice_id, ), ), );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)