Admin Posts List (edit.php) by post IDs

It can be achieved using pre_get_posts. It is important to prefix all your variable names, id seems not be in the reserved terms list, but anyway this practice avoids any unforeseen bug. /** * Usage: * http://example.com/wp-admin/edit.php?my_pids=4088,4090,4092,4094 */ add_filter( ‘pre_get_posts’, ‘limit_post_list_wpse_96418’ ); function limit_post_list_wpse_96418( $query ) { // Don’t run on frontend if( !is_admin() ) … Read more

Modify users.php query with multiple taxonomies

Because I’m also storing the user IDs against each company, office and team post object as user taxonomy I can reverse the query and only include the user IDs assigned to that specific post object. A similar thing to what has been done here – http://mywebsiteadvisor.com/learning/tutorials/building-simple-groups-plugin-for-wordpress-tutorial/step-5/ Only I’ve modified it to be a bit more … Read more