Sounds like you really just need a filter on pre_get_posts
to remove the unwanted terms. Something like this, but I am not sure I understand all the conditions you need so think of it as proof of concept only.
function exclude_terms_wpse_117242($qry) {
if (is_user_logged_in()) {
$tq = array(
array(
'taxonomy' => 'your_tax',
'field' => 'id',
'terms' => array(1,2,3),
'operator' => 'NOT IN',
)
);
$qry->set('tax_query',$tq);
}
}
add_action('pre_get_posts','exclude_terms_wpse_117242');
Related Posts:
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Include different loop templates in search query
- WP_Query search posts by custom post type and custom taxonomy
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Show Two custom Post type and their posts on category page
- How to filter custom taxonomy categories on archive?
- Querying Term Posts in Loop
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Search / Filter posts on Title/Content OR Tags
- Get parse_query filter to return slug instead of id
- How do I move/order posts with a tag to the end?
- Specific query for custom post type
- Display post content with respect to its title?
- First custom field value (out of several) displayed twice after query
- WP_Query orderby and tax_query
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- WP_Query() with custom post type and taxonomy — get all terms?
- Can I query posts by taxonomy conditionally based on post type?
- Query not work for current taxonomy
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Custom Post Type not showing in main loop
- Custom taxonomy query showing more than 4 posts
- Custom types, taxonomies and query optimization
- Query Custom Post by taxonomy multiple categories
- Query custom posts from custom taxonomy
- How to divide Subcategories into pages of parent category wordpress
- Check that a slug is present in the get_terms request
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Displaying all posts by category and showing content on click
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Get posts of an specific term of a custom taxonomy
- Query Pulling the same post twice
- Query Only Show Text on Posts With Certain Taxonomy Tag
- how to limit query_post to first page?
- Listing custom post type items from a couple of custom taxonomies
- Get terms by taxonomy AND post_type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Highlight menu item when on a custom post type?
- How to setup a Custom Taxonomy Term template
- Admin to user notices – best practices?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Custom Taxonomy List links being re-written
- front end radio custom taxonomy with custom post type
- Bulk 301 redirect for custom post type
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- Group custom posts by custom taxonomy names
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Get post from custom post type order by two taxonomies
- How to convert custom post type based list to a dropdown list?
- Display post as term id
- How to filter wp_list_categories output with some custom post type meta query?
- Removing custom post type slug from URL
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Advanced search form with filters for custom taxonomies
- Showing specific post in order of array wp_query
- Why cant I add a custom post type to a custom taxonomy?
- Show Custom Taxonomy title in loop
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Post Type Dilema – How do I categorise by country?
- Which file/template is in charge of taxonomies for custom post types?
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- Break up posts per page in two sections
- Querying a custom post type, but not show duplicates
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Get Terms from Custom Taxonomy and Current Post
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- custom post archive URL is wrong
- Custom Post Type with Different Sets of Post Content?
- Add a class to a div if custom post type has specific terms?
- Custom post type paging return home page
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- Custom taxonomy returns 404 even with saving permalinks
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Custom post type shortcode with taxonomy attribute not working and no errors
- Custom taxonomy terms registered not showing when added in child theme
- Custom post edit page permalink links to edit page rather than the post
- Show tags of custom post types in WordPress
- Display all Custom taxonomy terms and their relevant custom posts
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Pagination in custom loop for custom post type throwing 404 error
- Custom My account page and custom page for editing posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Require Custom Taxonomy for Custom Type