Seems the your post doesn’t attach any taxonomy. So just try to replace your code with this:
<?php
global $post;
$tax = 'directory_features';
$terms = get_the_terms($post,$tax);
if ( $terms && ! is_wp_error( $terms ) ){
foreach( $terms as $term ) {
$term_link = get_term_link( $term );
$image = get_field('svcta_favorites_image',$term);
if( $term->count > 0 ) {
echo '<li>';
echo '<img src="' . $image['url'] . '" alt="' . $image['alt'] .'"><br>';
echo '</li>';
} elseif( $term->count !== 0 ) {
echo '' . $term->name .'';
}
}
}
?>
Related Posts:
- Order get_terms using a Custom Field
- Get value in custom field with taxonomy [closed]
- Remove Category description textarea
- Custom Taxonomy Images with Advanced Custom Fields
- Advanced custom fields – taxonomy terms images [closed]
- Displaying ACF image field [closed]
- Operations with custom fields values in a loop
- ACF vs Taxonomies
- Specifying a size when displaying an image associated with a taxonomy through ACF
- How to add contents of a custom field to a taxonomy term list?
- 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
- Website loading slowly – Advanced Custom Fields images
- Display a colour of custom taxonomy on the page
- Can’t get taxonomy ID for each post on archive page
- Loop to display ONLY custom taxonomy parent information [closed]
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- query to use to link to taxonomy single page
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Echo ACF taxonomy field within a foreach for another taxonomy
- new custom filed not showing in taxonomy
- Connect ACF field + custom taxonomy [closed]
- Adding Advanced Custom Fields to posts
- ACF Custom field not showing in Timber Taxonomy page
- WordPress search form and search result through ACF field in custom taxonomy
- How to show selected check box vendors on front end home page?
- Creating a list with multiple categoreis and options
- Taxonomies, Adanced Custom Fields and Repeatable Fields
- ACF Display Taxonomy Image Field
- Display posts from specific slug of the custom taxonomy in WordPress
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy
- ACF – How to get custom taxonomy term image field
- WordPress taxonomy radio buttons
- Custom taxonomy, get_the_terms, listing in order of parent > child
- Inserting a term into a custom taxonomy
- Count posts in custom taxonomy
- Custom taxonomy on users with UI
- Get main parent categories for a product
- Echo Custom Taxonomy Field Values Outside the Loop
- Taxonomy Relationships
- How to display posts from a single category within a custom taxonomy
- Handling AJAX with custom taxonomy custom fields on add
- Custom taxonomy parent from another taxonomy
- How to extract url from get_the_term_list?
- Get terms ordered by post date
- Custom Taxonomy template not showing
- Custom Taxonomies Cababilities
- How to implement custom search with input fields?
- Custom taxonomy [year] is directing to yearly archive
- Alter post order on taxonomy template
- Display Taxonomy Terms in an option tag with value being the slug
- Category slug field missing with registered custom taxonomy
- How to show the a custom taxonomy term on single post metadata
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- Custom Post Type Taxonomy not showing
- Sort order by slug for looped child terms of custom taxonomy
- Simple Filter between multiple taxonomys
- Permalink help with default Posts and custom Taxonomy
- Add success message to category add screen
- 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?
- Adding Child Terms Programatically – No Warning but No dice either
- Custom taxonomy display name issue
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- How do I hide a term from non-admin users in get_the_term_list?
- Query Results not being displayed please help
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Custom taxonomy throw error 404
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- Get Terms of custom Taxonomy of products with certain Product Category
- Taxonomy shows up twice on Custom Post Type
- Custom dropdown list taxonomy not saved
- WordPress taxonomy terms archive template help
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Display multiple taxonomies in a function
- Remove Custom metabox from particular page template is used
- 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
- Dynamic value for get_option linked to taxonomy term_id?
- Best Method to Switch Between Terms (Custom Taxonomy)
- Getting the parent terms adds additional empty markup [closed]
- How to query authors by custom taxonomy?
- get multiple values from $_GET from multiple checkboxes
- Way to organize content – custom taxonomies or other way?
- Using post type archive page for taxonomy archive
- Custom Fields link to other pages, not search
- Taxonomy archive link from term id
- Add Gutenberg editor to edit taxonomy (category) page
- Why my archive title isn’t showing?
- ACF Pro simple Business Directory – Requesting assistance with created Templates and associated Functions.php Coding