{"action":"opened","issue":{"url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/43","labels_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/43/comments","events_url":"https://api.github.com/repos/Astoundify/wp-job-manager-regions/issues/43/events","html_url":"https://github.com/Astoundify/wp-job-manager-regions/issues/43","id":104872300,"number":43,"title":"BUG: incompatibility with WP Job Manager Alerts","user":{"login":"wpmagik","id":14125042,"avatar_url":"https://avatars.githubusercontent.com/u/14125042?v=3","gravatar_id":"","url":"https://api.github.com/users/wpmagik","html_url":"https://github.com/wpmagik","followers_url":"https://api.github.com/users/wpmagik/followers","following_url":"https://api.github.com/users/wpmagik/following{/other_user}","gists_url":"https://api.github.com/users/wpmagik/gists{/gist_id}","starred_url":"https://api.github.com/users/wpmagik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpmagik/subscriptions","organizations_url":"https://api.github.com/users/wpmagik/orgs","repos_url":"https://api.github.com/users/wpmagik/repos","events_url":"https://api.github.com/users/wpmagik/events{/privacy}","received_events_url":"https://api.github.com/users/wpmagik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T11:20:11Z","updated_at":"2015-09-04T11:20:11Z","closed_at":null,"body":"This looks like an easy fix. Everywhere in your code where you add tax_query, you need to check $region var. Otherwise in job alerts there are always empty results when regions field is empty. I don't know why it works in default job_alerts shortcode, but anyway:\r\n\r\nif( $region )\r\n{\r\n\t$query_args[ 'tax_query' ][] = array( /* ... */ );\r\n}"}}