Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php query_posts('showposts=1'); ('post_type=post&paged='.get_query_var('paged')); ?>
- <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
- <?php
- if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- }
- else
- {
- get_the_image( array('size' => 'thumbnail', 'image_class' => 'wp-post-image'));
- }
- ?>
- <?php endwhile; ?>
- <?php else : ?>
- <p class="no-posts"><?php _e('Sorry, no posts matched your criteria', 'example'); ?></p>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement