wp_list_categories show post

wp_list_categories is it possible to show post after there parent category?

<?php while ( have_posts() ) : the_post(); ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<div class=”entry-content”>
<?php
$args = array(
‘taxonomy’ => ‘category_download’,
‘hierarchical’ => true,
‘title_li’ => ”,
‘hide_empty’ => false,
‘show_count’ => ‘1’
);
?>

<ul>
<?php wp_list_categories( $args ); ?>
</ul>
</div>
</article>
<?php endwhile; ?>

Read more here:: wp_list_categories show post

Leave a Reply

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