Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $the_query = new WP_Query(array(
- 'post_type' => 'post','category_name' => 'genres','posts_per_page' => 6,'post_status' => 'publish'
- )); while ( $the_query->have_posts() ) : $the_query->the_post();
- echo'<div class="wrapper"><div> // stuff with post title, image and excerpt </div><div>'.get_the_category_list($post->ID).'</div>';
- endwhile; wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement