I updated my question with a partial answer to this problem. By adding an underscore ‘_’ before the name of the meta field it allows you to add meta data without it creating an editable custom field on the page edit screen.
update_post_meta( get_queried_object()->ID, '_term_id', $meta_term_id);
Related Posts:
- Show posts without term
- Why is my WP_Query not working when tax_query terms are an array?
- Get list of posts which have at least one term from a custom taxonomy with WP_Query
- List taxonomy terms plus their latest post ordered by post date
- Get random terms
- WP Query for Posts (Products) in Specific Category that has 2 Specific Tags (*AND* both tags not *OR*)
- Order terms inside a select dropdown
- Get array of current post term ID’s
- How to add terms to my tax_query based off of the current post
- Change default ordering of taxonomy terms – pre_get_terms
- Empty tax_query array returns an empty array
- Pass array of taxonomy terms to wp_query
- Get list of terms that have posts in another term
- Formulate a url to show posts with both taxonomy terms
- Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
- Order by slug in get_terms with multiple taxonomies
- WordPress Related Post by tags in Single.php
- Function get_queried_object() return NULL in custom taxonomy
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- List custom taxonomy terms sharing posts with a term from a second custom taxonomy
- Return Taxonomy/Term Information with Posts (WP_Query/get_posts)
- Get authors by term id or slug
- How to order posts by title after they have already been sorted by category
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- Taxonomy order exception for specific term
- Filter Custom Taxonomy Posts
- Get posts from multiple tax terms
- How to Order a list of taxonomies? orderby?
- get_the_terms – but only show 4 Posts
- Count posts per taxonomy else change taxonomy if less than x number
- How to add custom meta to ‘pre_get_terms’?
- get term id from term name
- WP_Query to output chosen term and posts with no term assigned
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Getting the post terms ‘wp_get_post_terms’ per post when within the functions.php file
- How to print term name inside wp post loop
- Using WP_Query for categories instead of get_terms
- Check if a post has term inside loop
- Grabbing taxonomy terms and inserting them into an array
- Deleting terms from the WordPress wp terms table
- Can’t get term id for category archive
- How can I do a orderby by the number of items? So basically list by starting with the array with the largest number of post
- How to make a post with certain taxonomy term display first before other post with only one query?
- How can I order a post query’s results based on the number of matching taxonomy terms?
- Only show tag with the same id as the post
- display ACF repater field in archive page
- Save queried result into database
- WP Query by 4 different taxonomies
- Get categories within specific term
- How to display Woocommerce products list by tag
- taxquery taxonomy get terms
- get term objects and post objects in query
- How to show terms from another taxonomy
- How to define a custom hierarchy for terms?
- How to get several fields from wp_query?
- query only direct child and sub-terms of a current term archive
- Get access to all terms associated to each post that the wp_query loop displays
- How can I get taxonomy term name using term slug & post ID using build in WordPress function or class?
- I need to get all categories from a WP_Query
- taxonomy-{term}.php terms pagination returning 404 after a certain page
- Modify WordPress Search
- Custom taxonomy query broken after upgrade to 4.4
- Show all products on one page with WooCommerce
- “pre_get_posts” firing on every query
- modifying meta_query on parse_query
- Use Transient API to cache queries for all posts in all categories?
- What’s wrong with this WP query?
- How do I search WordPress by different fields without a plugin?
- Retrieve products with specific attribute and in category – woocommerce
- How do I “orderby” a column without losing posts that don’t have the column?
- Compile meta values from custom loop into array and then calculate sum total
- Get posts using WP_Query
- How is WP_Query connected to WP_Post in The Loop?
- How to use order RAND() on WordPress?
- wp_query for displaying attachments with a tag
- Mysql query LIKE not working
- Multiple taxonomy And acf filter group by
- WP_Query Not Recognizing Taxonomy Parameter in Custom Search
- Sorting events by descending date, and ascending time if multiple events on a date
- WP_Query orderby author__in
- Take all produts by category
- Custom Query include private posts in pagination count calculations?
- Get posts by list of post IDs ordered by those IDs?
- List of ways to access WordPress database?
- WP_Query Results Issue with ACF
- Create a page template for “top rated posts” but show full content and not just a list
- Why tax_query in WP_Query not working
- Differentiate Nested WP_Query from Parent
- Add URL Rewrite Rule To WordPress
- localizing variable on front-page.php template fails but succeeds on single page and taxonomy archive
- Remove from array in WP_Query loop
- Avoid WP_Query’s duplicate posts with taxonomies
- How to merge multiple foreach into 1 foreach and sort by date
- posts_per_page not working in block
- Very slow query generated getting meta data from posts
- Ajax buttons not working properly in WooCommerce when using wc_get_template_part
- in tax_query this Is the code correct? I need to access beginner video posts for different subject
- how to add limit records in wordpress query
- WP_Query by meta key not returning any posts
- Include custom post type that matches taxonomy field in another custom post type