<?php $terms = get_terms('genre', array('hide_empty' => 0, 'parent' =>0));
foreach($terms as $term) :
$image = get_field('genre_image', $term); // ACF custom field ?>
<a href="<?php echo get_term_link( $term->slug, $term->taxonomy ); ?>"><?php echo $term->name ?></a>
<img src="<?php echo $image['url']; ?>">
<?php endforeach; ?>
Need Professional Support for Your Website Problems?
Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.
Hire Us