{"action":"closed","issue":{"url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/issues/24","repository_url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list","labels_url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/issues/24/comments","events_url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/issues/24/events","html_url":"https://github.com/wearerequired/rplus-wp-team-list/issues/24","id":120242229,"number":24,"title":"Querying by multiple roles broken","user":{"login":"swissspidy","id":841956,"avatar_url":"https://avatars.githubusercontent.com/u/841956?v=3","gravatar_id":"","url":"https://api.github.com/users/swissspidy","html_url":"https://github.com/swissspidy","followers_url":"https://api.github.com/users/swissspidy/followers","following_url":"https://api.github.com/users/swissspidy/following{/other_user}","gists_url":"https://api.github.com/users/swissspidy/gists{/gist_id}","starred_url":"https://api.github.com/users/swissspidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swissspidy/subscriptions","organizations_url":"https://api.github.com/users/swissspidy/orgs","repos_url":"https://api.github.com/users/swissspidy/repos","events_url":"https://api.github.com/users/swissspidy/events{/privacy}","received_events_url":"https://api.github.com/users/swissspidy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/milestones/2","html_url":"https://github.com/wearerequired/rplus-wp-team-list/milestones/2.0.1","labels_url":"https://api.github.com/repos/wearerequired/rplus-wp-team-list/milestones/2/labels","id":1429178,"number":2,"title":"2.0.1","description":"","creator":{"login":"swissspidy","id":841956,"avatar_url":"https://avatars.githubusercontent.com/u/841956?v=3","gravatar_id":"","url":"https://api.github.com/users/swissspidy","html_url":"https://github.com/swissspidy","followers_url":"https://api.github.com/users/swissspidy/followers","following_url":"https://api.github.com/users/swissspidy/following{/other_user}","gists_url":"https://api.github.com/users/swissspidy/gists{/gist_id}","starred_url":"https://api.github.com/users/swissspidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swissspidy/subscriptions","organizations_url":"https://api.github.com/users/swissspidy/orgs","repos_url":"https://api.github.com/users/swissspidy/repos","events_url":"https://api.github.com/users/swissspidy/events{/privacy}","received_events_url":"https://api.github.com/users/swissspidy/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2015-11-25T11:47:01Z","updated_at":"2016-02-23T14:18:56Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-12-03T18:51:03Z","updated_at":"2016-02-23T14:18:56Z","closed_at":"2016-02-23T14:18:56Z","body":"As reported in the support forums: https://wordpress.org/support/topic/displaying-2-roles-doesnt-seem-to-work.\r\n\r\n`[wp_team_list role=\"editor,contributor\"]` currently also outputs admins etc. because of the `OR` in the meta query I guess.\r\n\r\nNot sure when this actually happened, as I didn't really touch the user query stuff.\r\n\r\nWe can use `role__in` for 4.4+. For older versions, nested meta queries could work, e.g. `\"visible\" AND ( \"role 1\" OR \"role 2\")`"}}