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
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Get only the first term by taxonomy
- Removing taxonomy base using WP rewrite
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- WP_insert_term how to insert multiple values as taxonomny term?
- How to include parent terms in hierarchical taxonomy URLs?
- How to edit/remove a term that’s in multiple taxonomies?
- Fix : Custom Taxonomy Duplicating in each call
- Text and image in taxonomy page
- Custom taxonomies
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- How to add custom field to custom taxonomy in 4.4
- How to create custom taxonomy URLs without taxonomy name?
- How to insert an array of terms using wp_insert_term?
- Create Advanced search with taxonomies (not filter list)
- Show nav link highlighted
- display taxonomy slug from term ID
- list/consult Taxonomy only for the respective author/creator in dashbboard
- Redirect all child taxonomy to its parent
- How to add taxonomy to user?
- List posts of term on term’s admin edit page
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Taxonomy Order by Name
- add hirarchy of categories in products grid of visual composer
- taxonomy tax-name archive
- Hiding taxonomies with no children WP_Query & tax_query
- Custom taxonomy for Media Library
- Order get_terms() by hierarchy
- Returning One custom taxonomy term name
- Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]
- How to support fifteen thousand terms in WordPress?
- Hide taxonomy when term is empty
- The best way to display taxonomies
- Dynamically set taxonomy term and show admin notice on post save
- Remove taxonomy widget from “PAGE” post
- WP 4.8 : new taxonomy syntax for get_term_by and get_term_link ?
- How do I hide certain taxonomy boxes from users in admin add post page?
- How to add custom taxonomy terms to posts in bulk
- Permalink issues with custom taxonomies
- how to get the post id in the option tag
- wp_set_post_terms example?
- Adding term to a custom taxonomy based on term from product category
- How to list custom taxonomy terms alphabetically by last word
- display taxonomy terms with link
- Remove custom taxonomy slug from URL
- How to exclude woocommerece product category in search results?
- Can I get thumbnail of taxonomy?
- Add term to taxonomy programatically
- How to filter a page title with custom taxonomies
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- transfer two existing taxonomy terms into one custom metabox
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Catchable fatal error: Object of class WP_Error
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- Creating a Taxonomy Page [duplicate]
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- How to create a page that lists custom taxonomies with links?
- How to add/enqueue Custom CSS for a custom taxonomy page?
- Rewrite URL for a specific taxonomy [duplicate]
- Template hierarchy html with taxonomy in 6.2