Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php if( $wp_query->current_post == 0 ) :
- //section for the first post begins ?>
- <?php the_post_thumbnail();?>
- <?php the_excerpt(); ?>
- <?php //section for first post ends
- else :
- // section for all other posts begins ?>
- <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 //section for all other posts ends
- endif; ?>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php if(function_exists('wp_pagenavi')) wp_pagenavi(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement