Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts('showposts=1');?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php the_post_thumbnail();?>
- <?php the_excerpt(); ?>
- <?php endwhile; endif; wp_reset_query();?>
- <?php $my_query = new WP_Query('posts_per_page=1');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;?>
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post">
- <a href="<?php the_permalink(); ?>" rel="nofollow"><?php beaux_post_attachment_image('0','100','100','thumbnail alignleft'); ?></a>
- <div class="content">
- <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- </div><!-- end of content -->
- <div class="meta">
- <ul><li><?php the_time('m.d.y') ?></li>|<li><?php the_author(); ?></li></ul>
- <?php if($show_comments == 'true'): ?><div class="postcomments"><?php comments_popup_link('No Comment', '1 Comment', '% Comments'); ?></div><?php endif; ?>
- </div><!-- end of meta -->
- </div>
- <?php endwhile; ?>
- <?php endif; wp_reset_query();?>
- <?php endwhile; if(function_exists('wp_pagenavi')) wp_pagenavi(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement