I found a solution for this:
<?php
$current_term_id = get_queried_object_id();
$taxonomyName = "car-brand";
$parent_tax_ID = $current_term_id;
$parent_tax = get_term($parent_tax_ID);
$terms = get_terms( $taxonomyName, array( 'parent' => $parent_tax_ID, 'orderby' => 'slug', 'hide_empty' => false ) );
foreach ( $terms as $term ) {
$image2 = get_field('am-brand-img', $term);
echo '
<div class="am-ts-item">
<a href="' . get_term_link( $term ) . '">
<div class="am-ts-img">
<img src="'.$image2['url'].'" alt="'.$image2['alt'].'" />
<span>2004 - 2007</span>
</div>
<div class="am-ts-info">
<h2>' . $term->name . '</h2>
</div>
</a>
</div>
';
}
?>
Related Posts:
- Operations with custom fields values in a loop
- Loop to display ONLY custom taxonomy parent information [closed]
- How do I exclude a custom taxonomy from the post loop
- Order get_terms using a Custom Field
- Display category posts grouped by taxonomy
- display posts with same taxonomy term
- Get value in custom field with taxonomy [closed]
- Including all terms in wordpress tax_query
- Display one post from each term in a custom taxonomy [closed]
- Remove Category description textarea
- Is it possible to sort the post based on a custom field?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Custom Taxonomy Images with Advanced Custom Fields
- Advanced custom fields – taxonomy terms images [closed]
- Displaying ACF image field [closed]
- How to handle “the_terms” inside loop
- Modify main loop in taxonomy archive page
- All posts are still shown when adding category argument to query
- ACF vs Taxonomies
- Specifying a size when displaying an image associated with a taxonomy through ACF
- echo current taxonomy id for this loop?
- How do I Use Multiple Loops with WP_Query?
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- How can marge these loop code?
- How do I display a list of posts under all hierarchical children of the current taxonomy?
- Posts in loop displaying all taxonomies
- How to add contents of a custom field to a taxonomy term list?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Search Tool only refreshes Page without showing results
- where is the 4th taxonomy terms? taxonomy terms is disaapearing in the loop
- 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?
- Display all posts that use a custom taxonomy
- WordPress implode & wp_insert_post question
- If Custom Taxonomy
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Returning One custom taxonomy term name
- Exclude taxonomy term from all loops, but having it on widget
- Using WP_Query and Query_post for the loop?
- 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
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- Loop through custom taxanomy in post and display custom fields from posts
- query to use to link to taxonomy single page
- List terms of custom taxonomy if matches other taxonomy
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Only display latest custom taxonomy post
- how to get the post id in the option tag
- How to get the term description in a taxonomy term archive query?
- Chaining Taxonomy Queries
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Problem with sorting in custom child taxonomy archive page
- Echo ACF taxonomy field within a foreach for another taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- new custom filed not showing in taxonomy
- Group posts in a category based on tags in custom taxonomy
- Connect ACF field + custom taxonomy [closed]
- How to loop custom posts that have an exact match in taxonomy terms?
- Some posts not displaying by taxonomy term
- Adding Advanced Custom Fields to posts
- Get post meta value outside of the loop
- ACF Field, hide taxonomy title and image when no nothing selected in post
- ACF – Get unique values of array
- Remove Custom metabox from particular page template is used
- ACF Custom field not showing in Timber Taxonomy page
- Custom taxonomy shows full articles
- Is it possible to sort the post based on a custom field?
- Output slugs to use as class names for every taxonomy a post is attached to
- WordPress search form and search result through ACF field in custom taxonomy
- Multi level archive
- How to show selected check box vendors on front end home page?
- List active taxonomy terms
- Creating a list with multiple categoreis and options
- sort Posts by custom user filed
- How to get name of custom taxonomy
- Query pages by child term
- Taxonomies, Adanced Custom Fields and Repeatable Fields
- Query Number of Loaded Posts in Loop
- Trying to achieve row posts below category with multiple loops in custom tax
- Custom Taxonomy + JQuery Tabs
- WordPress show posts from children terms of a taxonomy term
- Loop custom post type by taxonomy (Category)
- Get custom taxonomy value of post and output posts in same taxonomy
- ACF Display Taxonomy Image Field
- How do I create a term for every value of a post meta?
- How home my code doesn’t display any feature image? Looping through post from a taxonomy and not getting feature images back
- Loop posts without any taxonomy
- How to looping taxonomy terms?
- 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
- get_terms() returns an empty array
- Taxonomy page template changing when using query variables
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- How to use multiple archive templates for a taxonomy?
- Clicking Add New button for custom taxonomy only moves element
- Post Class for Custom Taxonomy Error
- How do I deliver posts based on user geolocation