I can’t really explain it any better than the ACF documentation page I posted in the comments:
All the API functions can be used with a taxonomy term, however, a second parameter is required to target the term ID. This is similar to passing through a post_id to target a specific post object.
The $post_id needed is a string containing the taxonomy name + the term ID in this format: $TaxonomyName_$TermID
So if your custom field is my_cf, and your taxonomy name is basic (not term name) and the term ID within your taxonomy is 42, then you need:
$variable = get_field( 'my_cf', 'basic_42' );
Related Posts:
- How to add contents of a custom field to a taxonomy term list?
- Order get_terms using a Custom Field
- Remove Category description textarea
- Advanced custom fields – taxonomy terms images [closed]
- Automatically assign taxonomy term if custom meta value exists
- Outputting an array of term meta values in a custom WooCommerce tab?
- Operations with custom fields values in a loop
- Print terms with taxonomy and metabox value
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Search Tool only refreshes Page without showing results
- Display value of custom field of custom taxonomy in single post?
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- WordPress implode & wp_insert_post question
- How to support fifteen thousand terms in WordPress?
- Can’t get taxonomy ID for each post on archive page
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- How to use custom slug and custom templates for custom taxonomy?
- 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?
- ACF Custom field not showing in Timber Taxonomy page
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- Inserting terms in an Hierarchical Taxonomy
- How to prevent new terms being added to a custom taxonomy?
- Order terms by term_order
- Get second level terms of custom taxonomy
- Large taxonomy (2000+ terms), causing WordPress to hang
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Best pratice to make taxonomy terms translatable without changing slugs?
- Check if current term is a child of another term
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- Get taxonomy name of current post
- wp_insert_term auto unique name
- Custom metabox for menu administration page?
- Custom Fields and performance
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- show term description instead of list terms of custom taxonomy
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Display Custom Taxonomy Terns ordered by meta_value
- get_the_term_list without specific category
- Listing child terms of parent term
- Display the taxonomy name of the current term
- Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
- Edit post meta with checkboxes on front end
- Dynamically tax_query terms
- Get Custom Field Values by Another Custom Field in WordPress
- Storing data into custom taxonomies VS post custom fields (post meta)
- get_the_terms() to show all custom taxonomies
- How to order a list of taxonomy terms alphabetically?
- Custom Taxonomy Archive BUG
- Can I limit term selection to one plus parent?
- ACF vs Taxonomies
- Insert form checkbox at bottom of taxonomy edit term page
- Specifying a size when displaying an image associated with a taxonomy through ACF
- Get Current Custom Taxonomy ID by Post ID
- Changing stylesheet depending on custom taxonomy terms
- Custom fields to taxonomy
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Retrieve value of a category’s custom field
- Get_terms stopped working after WP 4.2
- Styling Taxonomy Terms Individually
- Changing taxonomy term by slug (wp_update_term)
- Getting Term ID from Term Name for WordPress Query
- Show only the grandchildren (using get_terms)
- Custom Taxonomy Term Caching?
- wp_insert_term created and set for first once only
- Display all posts that use a custom taxonomy
- how to store values in database at hierarchical view
- 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?
- Display a colour of custom taxonomy on the page
- Filter through custom taxonomy with an array of taxonomy IDs
- Create alphabetical Pagination for custom taxonomy?
- save custom term – hook create_term doesn’t work
- URL rewriting taxonomy term
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- Can You Build Page Templates Without Extra Files
- Unable to get the Parent Custom Taxonomy Terms
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Is there a way to nest taxonomies or custom fields deeper than one level below the post type?
- Pull data from MySQL and add it to terms
- Get custom taxonomy terms that contain posts that have another taxonomy term
- ACF – Get unique values of array
- how to filter the data’s comparison operators (>= &
- Creating a list with multiple categoreis and options
- Query pages by child term
- Taxonomy term breadcrumb; how?
- Insert term description programmatically into hierarchical custom taxonomy
- Transfer taxonomy to custom field
- Unable to display the post titles in a drop down
- How can I get the term_id from the action hook ‘set_object_terms’?
- Display posts from specific slug of the custom taxonomy in WordPress