<?php
global $wpdb, $post, $opt_themes; 
//set_query_var( 'title', $nomor ); 
//$title = get_query_var( 'title' ); 
$value = get_query_var( 'value' );
$show_image = get_query_var( 'show_image' );
?>
<div class="col-6 mb-3">
	<a class="d-flex align-items-center position-relative aside-cat" href="<?php echo get_category_link( $value->term_id ); ?>" title="<?php echo $value->name; ?>">
	<?php if($show_image){?>					 
	<img class="rounded-circle flex-shrink-0 mr-2" style="font-size: 0; width: 2rem; height: 2rem;" src="<?php if (get_the_post_thumbnail( get_the_ID() )) { echo wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' )[0]; } elseif(get_post_meta( get_the_ID(), 'wp_poster_GP', true )) { echo get_post_meta( get_the_ID(), 'wp_poster_GP', true ); } else { echo $opt_themes['no_img']['url']; } ?>" alt="<?php the_title(); ?>" > 
	<?php } ?>
	<span class="text-truncate text-body" style="min-width: 0;"><?php echo $value->name; ?></span>
	</a>
</div> 