Loop query custom taxonomy

Add code to: taxonomy-custom-taxonomy-cat.php

<?php 
$get_cat_slug = get_queried_object()->slug;
$get_cat_name = get_queried_object()->name;
 if ( have_posts() ) : 
 	while ( have_posts() ) : the_post();
 		$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "full" );
 		echo "<h1>".get_the_title()."</h1>";
 	endwhile; // end of the loop.
 	flatsome_posts_pagination();
	else : echo "No video";
	endif;
?>

Leave a Reply

Your email address will not be published. Required fields are marked *