New answers tagged

0

I'm sure there's a better approach, but this query should do what you want: SELECT DISTINCT meta_value FROM wp_postmeta pm WHERE meta_key = 'Driver' AND NOT EXISTS (SELECT * FROM wp_term_relationships tr JOIN wp_term_taxonomy tt ON tt.term_taxonomy_id = tr.term_taxonomy_id JOIN wp_terms t ON t.term_id = ...


0

First, the pre_get_posts hook is an action and not a filter. Then the meta_query parameter should contain the relation only if there is more than one inner meta_query array (codex). Finally you do not need to return the $query argument as it is passed by reference to your callback function. Your code should look like this: function ZoekGeenLegeItems( ...


1

The solution was to make a template: if (!is_page_template('jobs-uk.php')) add_filter('sjb_job_location_filter_args', 'exclude_jobs_locations_uk');



Top 50 recent answers are included