You are passing strings as the second parameter $terms
and you have a hierarchical taxonomy. Per the Codex:
For hierarchical terms (such as categories), you must always pass the
id rather than the term name to avoid confusion where there may be
another child with the same name.
If you follow the source, you will notice that your strings get wiped out.
You need to be using term ID
s or alter your taxonomy so that it isn’t hierarchical.
You can use get_term_by('name','tax-slug','tax-name')
to get the ID
s.
As far as getting that update automatically, you will have to do that with Javascript.
Related Posts:
- Retrieve posts by term id custom query
- Display category posts grouped by taxonomy
- restrict_manage_posts not working in 3.3.1
- Scheduling posts to update once per day with wp_cron
- Filter all queries with a specific taxonomy
- wp_query orderby title and meta key value (WP3.1)
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Taxonomy.php issue with search and filters
- How to List Parent Term Links for Custom Taxonomy With & Without Children?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- Custom taxonomy query not working with switch_to_blog
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Print terms with taxonomy and metabox value
- Checkbox onclick filtering on the same page
- A way to query custom taxonomies by name
- get the taxonomies terms associated with users
- Updating / Saving items generated by wp_terms_checklist on frontend
- Rewrite Rules returning wrong data
- Sorting main query by custom taxonomy slug
- WordPress Custom post query sorting does not work
- List related terms + taxonomies
- Search Query for Multiple Terms In Same Taxonomy
- Exclude taxonomy term from all loops, but having it on widget
- Get list of taxonomies associated with users
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- Several taxonomy query (like filter)
- Taxonomy archive template that shows posts from more than one taxonomy
- how to access the $query variable inside taxonomy-xxx.php template file?
- Displaying Posts Attached to Custom Taxonomy Terms
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- Get 1st parent category id from post
- How to get the term description in a taxonomy term archive query?
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Query Multiple Custom Taxonomies
- Trash Bin for Categories?
- Query by multiple custom taxonomies
- WP Query : strange behaviour with multiple no-hierarchical tax
- WordPress search form and search result through ACF field in custom taxonomy
- Query pages by child term
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Tax Query not working
- Custom taxonomy – query returns an error
- How to perform a search inside a specific taxonomy category
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- add_query_arg to look up page title
- Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
- How can I query for all values of a custom taxonomies?
- query grandchildren taxonomy terms
- Taxonomy Child Not Updating Unless I Click Update Twice
- Is there a way to ‘Lock’ a Taxonomy?
- Return only the custom sub-term for custom post type, do not echo term-parent
- wp_insert_term is adding a term that has no name
- Get total number of comments from posts in a specific custom taxonomy
- Connect Users and Taxonomies
- WordPress json api taxonomy index method
- Sort Custom Taxonomy Terms in admin by custom order
- Change in custom taxonomy permalink causes 404 error for another custom taxonomy
- Checking if a Page has an Associated Term?
- Displaying ACF image field [closed]
- Making certain categories of CPT not publicly queryable
- Display post content with respect to its title?
- WP_Query orderby and tax_query
- wordpress testimonials
- Output single post custom taxonomy child terms
- Website loading slowly – Advanced Custom Fields images
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- Removing custom taxonomies from the admin menu
- Custom post type Category Display
- Custom Taxonomy template not display
- pre_get_posts post_meta event
- How can I add a custom permalink to a term?
- Proper way to create taxonomy queries
- search using multiple taxonomies and keyword
- Custom Permalink Structure for terms/taxonomies of custom post type
- register_taxonomy for both ‘Post’ & ‘Page’
- List one post only from each subcategory using get_posts?
- Search custom taxonomy via query-string?
- problem : Custom taxonomy template not showing
- WordPress not saving tags for custom taxonomy term description
- How to Implement Custom Taxonomy Conditional Page?
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Display multiple taxonomies in a function
- Remove Custom metabox from particular page template is used
- generate random slug when adding taxonomy
- Add and Custom category for posts “PAGE”
- Exporting Custom Taxonomy Description without Plugin
- How do I display post count of a custom post type with custom category taxonomy in wp_menu_nav?
- WordPress Main Menu with dynamic url
- wp_insert_post and custom taxonomy
- Best Method to Switch Between Terms (Custom Taxonomy)
- Custom post type term names with ampersand in the term name
- Getting the parent terms adds additional empty markup [closed]
- How to query authors by custom taxonomy?
- Display custom post term or taxonomy
- Attaching meta box to specific category/taxonomy in custom post type
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Custom Taxonomy type in nav menu
- Using post type archive page for taxonomy archive
- Custom Fields link to other pages, not search
- Taxonomy archive link from term id