Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- news
- news
- <?php
- $galleryPosts = new WP_Query(array(
- 'post_type' => 'post',
- 'order' => 'ASC'
- ));
- ?>
- <?php if ( $galleryPosts->have_posts() ) : ?>
- <?php while ( $galleryPosts->have_posts() ) : $galleryPosts->the_post(); ?>
- <?php if(!has_post_format('gallery')) {
- the_category();
- }
- ?>
- <?php endwhile; ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement