the solution:
function parse_query_useronly( $wp_query ) {
if ( is_admin() && strpos( $_SERVER['REQUEST_URI'], '/wp-admin/edit.php' ) !== false ){
$wp_query->set( "location", get_user_role_location());
}
}
add_filter('parse_query', 'parse_query_useronly' );
Related Posts:
- How to add a style to taxonomy edit page
- Remove description in custom taxonomy edit screen
- Removing the base “Author” or changing it to something else. is it possible?
- Create Admin Only Taxonomies?
- Require a Custom Taxonomy to be checked
- Custom taxonomy sort by term meta in admin columns
- Can I limit term selection to one plus parent?
- Date range filter for manage posts list on edit.php
- ‘wp’ action hook not firing in admin and login?
- Adding content to a taxonomy metabox
- Modify “View” in admin panel for custom taxonomy
- Taxonomies image
- Remove categories from post edit page, but keep in sidebar?
- Separate tags with semicolon
- List custom taxonomies associated to an author’s posts
- Variable Not Working Inside is_author() Array
- wp_set_post_terms example?
- Link a page from admin to a custom taxonomy
- Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?
- Removing fields from category/taxonomy edit form
- An unidentified error has occurred when deleting a category
- Change get_author_posts_url / Author URL via filter
- Replace post author in header by custom taxonomy
- How to modify a taxonomy that’s already registered
- Change order of Custom Taxonomy List
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Custom taxonomy listing page when no term set (all terms)
- Custom order of terms for custom taxonomy in admin and website
- RSS Feed for posts containing any term from a taxonomy
- How to enable hierarchical permalinks for hierarchical taxonomies
- Exclude Child Term Posts from Parent Term Archive
- Use custom posts as taxonomy term meta replacement?
- Taxonomies not appearing in columns on dashboard
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- How to get terms of a custom post type in a loop inside footer.php
- List only first-level children of specific custom taxonomy term
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- get_terms of post->id
- get / list categories and counts filtered by custom taxonomy term
- Refine user taxonomy query based on role
- Get ID and slug from taxonomy object
- how to search in custom fields & custom taxonomy for custom search
- List Custom Taxonomy Based on Post Count & Category
- List the number of posts for each custom taxonomy and specific custom field value
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- Echo specific term in an array
- showing custom taxonomies w/custom post type
- wp_insert_post not updating custom taxonomy selected if logged in as a subscriber
- How to overwrite registered taxonomy url from vendor plugin in child theme
- Dynamic loading of Archive content based on custom taxonomy term name
- Checking return with WP Error
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- Rewrite URL for taxonomy listing
- Return terms from multiple taxonomies using $wpdb
- Failure to add term meta
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- Creating terms vs custom post meta to save data?
- Can’t set custom taxonomy terms via custom form
- I don’t need ‘view’ page for my custom taxonomy
- If Custom Taxonomy
- What does ‘category__in’ mean in queries?
- Use the same taxonomy twice on the same post type?
- When filtering query on custom taxonomy; main menu dissapears
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Why doesnt this query work? (Custom Taxonomy)
- How to group all terms children’s in custom taxonomy?
- Display Posts by Custom Taxonomy Chosen Terms
- How do I get term data associated with the current post, where the result is not wrapped in HTML?
- Custom taxonomies mixed into categories and tags in Post edit page
- How to get product order by two custom taxonomy in wordpress
- How can i add custom field inside custom post taxonomy?
- Custom Taxonomy Not Saving in Front End Post
- How to list Custom Taxonomy
- Taxonomy archive template not working
- Showing relevant categories on custom taxonomy template
- Dropdown list of taxonomies won’t display selected
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- custom taxonomies on pages
- Set two terms for a post when they differ only by an accent
- Unknown column ‘wp_posts.ID’ in ‘field list
- Conditional if is single and part of the custom taxonomy
- set_object_terms for custom taxonomy in custom post type – not working
- Get all users attached to a taxonomy
- Permalinks incorrectly inserting multiple categories
- List active taxonomy terms
- How do you move custom fields to custom taxonomies using WP Queries
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Where to put code to get custom taxonomy term id?
- Select default taxonomy on dropdown
- Taxonomy Extra Meta [duplicate]
- How can I query for all values of a custom taxonomies?
- Returning info from MYSQL table via custom taxonomy
- Custom Taxonomy – Archive for the whole Custom Taxonomy (and not just single term)?
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Guest author – URL, base and custom taxonomy – working but unstable
- Search and filter with custom field in taxonomy
- Limit authors on specific catogories