Home Forums General Issues Tag List With Thumbnails


Tag List With Thumbnails

  • I ar trying to show tag list with thumbnails but thumbnail is not showing please help as soon as possible

    here is the code

    $args = array( 'orderby' => 'count', 'order' => 'DESC', 'number'=>2);
    $tags = get_tags($args);
    	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>';
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.