Home › Forums › General Issues › Category List with thumbnails › Reply To: Category List with thumbnails
<?php
$args = array( 'orderby' => 'count', 'order' => 'DESC', 'number'=>2);
$tags = get_tags($args);
if($tags){
echo '<div id="dle-content">';
foreach($tags as $tag) {
$link = get_term_link($tag);
echo '<a href="'.$link.'"> <article class="movie-item movie-item1"> <div class="movie-cols movie-cols1 clearfix"> ';
$size = "thumbnail";
$image = get_field('tag_img', 'tag_'.$tag->term_id);
echo ' <div class="movie-img movie-img1 img-box pseudo-link"> <div class="movie-img-inner"> <i class="fa fa-folder-open" data-link=""></i> </div> <img src="' . $image . '" />';
echo ' </div> <div class="movie-text movie-text1"> <div class="movie-title cardname">' . $tag->name . ' </div> </div> ';
echo ' </div> </article></a>';
}
echo '</div>';
}
?>
thumbnail is not showing
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.