Seemed have found a solution via customizing a code snippet from here:
http://wordpress.org/support/topic/get_the_terms-using-array-of-taxonomies
$taxonomy = get_the_terms($post->id, get_post_meta($post->ID,'metafield-taxonomy-name',TRUE) );
$terms = get_the_terms($post->id, $taxonomy );
- $taxonomy must be placed outside of post loop.
Thanks!
Related Posts:
- Get value in custom field with taxonomy [closed]
- Automatically assign taxonomy term if custom meta value exists
- Outputting an array of term meta values in a custom WooCommerce tab?
- Print terms with taxonomy and metabox value
- How to add contents of a custom field to a taxonomy term list?
- How to support fifteen thousand terms in WordPress?
- Can You Build Page Templates Without Extra Files
- How to use custom slug and custom templates for custom taxonomy?
- add pagination in wordpress page template
- Count tags for current post and save into custom meta field (and update it on post edit)
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- How can I get parent term from a child term
- get_the_term_list without links in 3.1
- get_term_children for immediate children only (not grandchildren)
- Is there a way to ‘Lock’ a Taxonomy?
- Creating a non-removable taxonomy term
- 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 terms from multiple taxonomies
- get_terms showing link to category even if all posts are drafts
- Determine if Term has Grandparent/Great-Grandparent
- Retrieving custom taxonomy in order, but excluding specific tax IDs
- Is it possible to sort the post based on a custom field?
- get taxonomy terms for parent and child
- Taxonomy query for children of parents
- Separator for multiple terms
- Ordering Posts with Custom Taxonomy Terms Array
- Checking if a Page has an Associated Term?
- How get custom field from custom taxonomy?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Get Bottom Most Level Taxonomy Terms?
- How can I get WP to build a feed based on multiple taxonomy terms
- Set custom post type terms by id without knowing taxonomy
- How to determine the depth of a term in a custom taxonomy?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- get_term_children doesn’t return an array of children terms
- Term count by user
- AJAX response, edit tags
- List child terms if parent but show nothing on children
- Display Taxonomy Terms in an option tag with value being the slug
- If post has ANY term attached to it, get the first one only
- Display all posts for taxonomy term across multiple custom post types
- Getting Term ID from Term Name for WordPress Query
- How can I hide admin columns showing extra custom taxonomy fields?
- Get list of taxonomies associated with Subscribers
- Sort order by slug for looped child terms of custom taxonomy
- wp_insert_term created and set for first once only
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- How to separate posts in loop?
- Custom Taxonomy isn’t working from frontend post submitting
- Search Tool only refreshes Page without showing results
- Updating / Saving items generated by wp_terms_checklist on frontend
- Rewrite rules for varying nested terms of custom taxonomy
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Are term IDs unique even between multiple custom taxonomies
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Get all attachments by custom taxonomy – term
- Get terms that don’t belong to current post with a shortcode
- saving meta/custom field to tag
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Get name of taxonomies of current page
- Filter through custom taxonomy with an array of taxonomy IDs
- What’s the best way to add taxonomy’s image in 2017?
- export and import taxonomy terms from one taxonomy to another
- save custom term – hook create_term doesn’t work
- Find terms in a custom taxonomy based on the hirearchy
- Wp_query…a type of term a different div
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- Show single Child Category on Custom Post
- Filter by Custom Taxonomy AND Custom Field
- Unable to get the Parent Custom Taxonomy Terms
- Pull data from MySQL and add it to terms
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Filter “get_terms” query
- ACF – Get unique values of array
- Remove Custom metabox from particular page template is used
- generate random slug when adding taxonomy
- Add and Custom category for posts “PAGE”
- Custom post type term names with ampersand in the term name
- If page is a taxonomy do X, if is a term, do Y
- Getting the parent terms adds additional empty markup [closed]
- Custom taxonomy list in two columns
- Custom taxonomy page uses index.php
- Taxonomy term breadcrumb; how?
- get multiple values from $_GET from multiple checkboxes
- Transfer taxonomy to custom field
- Get post terms with hierarchical relationships
- Custom Fields link to other pages, not search
- Unable to display the post titles in a drop down
- Taxonomy archive link from term id
- How can I get the term_id from the action hook ‘set_object_terms’?
- Hide empty categories on widget