You can save term meta using update_term_meta
:
update_term_meta( int $term_id, string $meta_key, mixed $meta_value, mixed $prev_value="" )
https://developer.wordpress.org/reference/functions/update_term_meta/
Related Posts:
- Why is my WP_Query not working when tax_query terms are an array?
- How to add terms to my tax_query based off of the current post
- Pass array of taxonomy terms to wp_query
- 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
- Function get_queried_object() return NULL in custom taxonomy
- Return Taxonomy/Term Information with Posts (WP_Query/get_posts)
- Get authors by term id or slug
- Taxonomy order exception for specific term
- Get posts from multiple tax terms
- How to Order a list of taxonomies? orderby?
- How to add custom meta to ‘pre_get_terms’?
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Can’t get term id for category archive
- 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
- taxquery taxonomy get terms
- How to show terms from another taxonomy
- How to define a custom hierarchy for terms?
- How can I get taxonomy term name using term slug & post ID using build in WordPress function or class?
- Pagination with custom SQL query
- Is it possible to orderby multiple meta_keys when using meta_value_num?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Display posts the match taxonomy term linked from wp_list_categoies?
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- How can I connect to another WP database and use WP_Query?
- Move posts to top of WP_Query if in certain Taxonomy?
- Display certain amount of posts on taxonomy archive page
- Querying Multiple Custom Taxonomy Terms
- Sorting meta_value as integer doesn’t work
- Get array of current post term ID’s
- Ordering by meta_value AND date NOT WORKING with wp_query
- Get the Plugin Which Triggered a MySql Query in WordPress?
- Order taxonomy terms in alphabetical order
- Empty tax_query array returns an empty array
- How do I search inside specific taxonomies in WordPress
- Get taxonomy terms only of the WP_Query current posts
- Select from wp_post and multiple meta_value from wp_postmeta
- Order by custom table and multiplication
- How to correctly pass values to wpdb->prepare()?
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- WPDB query – decrypting DB data
- Need wp_query to return all children and grandchildren
- List custom taxonomy terms sharing posts with a term from a second custom taxonomy
- new WP_Query to get max price meta value not working
- Why isn’t my `meta_query` array functioning properly?
- How to orderby multiple meta fields if some fields are empty
- Filtering posts from different categories into different section by doing WP_Query only once
- WP Query Args – Title or Taxonomy Value
- Slow queries on a huge database
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- wp_query args adding muitiple tax_querys
- Automatically Query Parent Taxonomy
- Custom query: Get all posts that are from a certain category?
- How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?
- Custom taxonomy.php not working
- Ajax future single post query doesn’t work when NOT logged in
- Conditional sorting with variable using WP Query
- WP_Query for a taxonomy with different taxonomy types
- Does meta_value (array) work with ‘orderby’?
- WP Query Meta Value – How To Identify Specific, Unique Values?
- get_post() is not returning correct value
- How to print term name inside wp post loop
- Get posts in taxonomy randomly
- Grabbing taxonomy terms and inserting them into an array
- query post by author gender
- Meta query with compare by more than 2 fields
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- how to translate countries output from wp database?
- Custom taxonomy in WP_Query not working
- duplicated posts when using pagination
- Passing a SQL query to the WP Query
- display ACF repater field in archive page
- How to use the Term Object from a custom select field in a query
- WP Query by 4 different taxonomies
- wp_query with meta_query and tax_query
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- How to break up output of posts for different terms on same page?
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- pages shortcode filtering by category
- get term objects and post objects in query
- Include post_status check within $wpdb query
- wpdb get_results() returns only 2 rows
- Search format not matching taxonomy query
- Optimising amount of calls to custom fields
- pre_get_posts or $where, which one to use?
- Cannot order by in WP_Query
- Query to get all the posts of more than 2 meta_value having same meta_key?
- Search Query that Includes Custom Table
- query_posts, oderby meta_value & print “future” posts
- wpdb LIKE request shows all database data
- How much does $wpdb->prepare(), then $wpdb->query() VS straight $wpdb->query(), can slow down the load time of whole page
- how to use transient method?
- Multiple Orderby is not working right
- I need to get all categories from a WP_Query
- Is there another way to retrieve a post_id from post_meta other than a SQL query?