Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php query_posts("orderby=rand&category_name=logos&posts_per_page=24"); ?>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div class="thumb">
- <?php if (in_category("logos")
- && $post == $posts[0]
- || in_category("logos")
- && $post == $posts[1]
- || in_category("logos")
- && $post == $posts[2]) {
- ?>
- <div class="new">
- <a href="<?php the_permalink(); ?>"><img src="<?php bloginfo("template_directory"); ?>/images/spacer.png" /></a>
- </div>
- <?php } ?>
- <?php if (has_post_thumbnail()) {
- the_post_thumbnail("thumb"); ?>
- <?php }
- else { ?>
- <img src="<?php bloginfo("template_directory"); ?>/images/thumb.jpg" />
- <?php } ?>
- </div>
- <?php endwhile; else: ?>
- <p><?php _e("Sorry, no posts matched your criteria."); ?></p>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement