For those running into issues in the future, this is what I did:
I made my pre_get_posts
function that queries the taxonomy as normal for testing if an taxonomy ID is not in a list:
$q->set( 'tax_query', array(array(
'taxonomy' => 'tax',
'field' => 'id',
'terms' => tax_get_inactive(),
'operator' => 'NOT IN'
)));
Then, I implemented my tax_get_inactive
function as seen above, to query my taxonomymeta
table and build an exclusion list. Not the most elegant way, but it works and the exclusion list can easily be cached if performance is in mind.
Related Posts:
- Add terms to a taxonomy archive from within the same taxonomy
- How to add images to taxonomies?
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Combine multiple custom user taxonomy in single url
- Advanced Tax Query
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Sorting taxonomy columns by meta value numeric
- Get Taxonmy Term ID For Current Post
- Changing stylesheet depending on custom taxonomy terms
- How do I taxonomy terms based on terms they are used alongside?
- Custom taxonomy [year] is directing to yearly archive
- Taxonomies on custom taxonomies
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Getting associated taxonomies
- How to add images to taxonomy terms? [duplicate]
- one post per term taxonomy
- Query custom taxonomy for category including children
- Amend taxonomy to search in wordpress admin
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- Fill New Taxonomies
- Custom Taxonomies Archive Page 404
- How do you search for a post by custom taxonomy?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- WordPress Taxonomy Menu
- wp_get_object_terms count on taxonomies within an category archive
- Make custom post type display with custom taxonomy in url
- custom post type taxonomy “tag” archive : no post found
- Get taxonomy names by post id
- Return only the custom sub-term for custom post type, do not echo term-parent
- Get total number of comments from posts in a specific custom taxonomy
- Formating the_terms() function output
- Custom taxonomy on users with UI
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- Add custom taxonomy to default category taxonomy?
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get terms ordered by post date
- How can I get WP to build a feed based on multiple taxonomy terms
- Change permalink of post if it belongs to custom taxonomy
- Get pages only with a specific taxonomy
- Share taxonomy between user and posts?
- How to filter terms from a custom taxonomy by a usermeta value on all screens and templates
- How to obtain the link/URL to the feed of a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- Use get_the_terms to list subcategories of custom taxonomy
- Get taxonomy parent using child slug (from merged taxonomies)
- Modify “View” in admin panel for custom taxonomy
- Hide product categories and taxonomy terms in menu if empty
- Custom taxonomy forms for user profile
- Query posts by taxonomy with current term
- Search Tool only refreshes Page without showing results
- Add Taxonomy Subcategory To Permalink
- problem in taxonomy-{taxonomy}.php pagination
- Custom Taxonomy with tax_query
- Get posts in certain Taxonomy terms for the current page url
- Why get_page_template() doesn’t show taxonomy template file name?
- View the complete list of a taxonomy in the navigation menu
- Get name of taxonomies of current page
- How to get attached image to taxonomy..?
- How to get list of only custom taxonomies?
- pre_get_posts post_meta event
- Add custom taxonomy as a css class
- Taxonomy page shows category in title
- Variable Not Working Inside is_author() Array
- Only display latest custom taxonomy post
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- How to combine taxonomies into URL?
- Unique taxonomy for post
- Show recent posts from a custom taxonomy in wordpress
- add pagination in wordpress page template
- how do you pull data from two taxonomies?
- problem : Custom taxonomy template not showing
- Custom dropdown list taxonomy not saved
- WordPress taxonomy terms archive template help
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Get post meta value outside of the loop
- Unable to create a new taxonomy
- Change link of taxonomy when get_the_term_list( is used?
- Custom taxonomy shows full articles
- Taxonomy On Index Page
- Display List of Categories Within a Custom Taxonomy
- Change order custom taxonomy
- How to query authors by custom taxonomy?
- Register custom taxonomy from a Advenced custom field option page
- Multiple loops on a Search result page?
- How to get multiple Taxonomies not All Taxonomies?
- Using wp_query is it possible to orderby taxonomy?
- List of taxonomy archive index page links
- Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
- Primary Taxonomy for Post
- Insert taxonomy term to different table
- get_the_terms inside save_post gives old terms
- How do I create a term for every value of a post meta?
- Add custom display condition to Elementor Theme Builder for custom taxonomy children, grandchildren, and great-grandchildren
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?