All pastes #1093937 Raw Edit

Mine

public text v1 · immutable
#1093937 ·published 2008-08-06 16:53 UTC
rendered paste body

<?php get_header(); ?>

<div id="content">

<!-- **********************Loop 1********************** -->
<div id="featured_post">
<?php $temp_query = $wp_query; ?>
<?php query_posts('showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<div class="post_category">In <?php if (the_category(' &amp; '))  the_category(); ?></div>
<h2 class="post_title"><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div id="post_byline">
<p class="post_author">By <?php the_author_posts_link(); ?>

<p class="post_dateline"><?php the_time('l, F j, Y'); ?>

</div>
<div class="post_content"><?php the_content(); ?></div>
<div class="post_meta">
<p class="post_info">Tags: <?php if (get_the_tags()) the_tags('',', ',''); ?>

<p class="post_info"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><span class="post_edit"><?php edit_post_link('&nbsp;&#124;&nbsp;Edit', '', ''); ?></span>

</div>
</div><!-- end post -->
<?php endwhile;?>
</div>

<!-- **********************Loop 2********************** -->
<div id="odd_post">
<?php $wp_query = $temp_query; ?>
<?php $postcount = 1; rewind_posts(); ?>
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) == 0 ) : // skip 'even' posts
$wp_query->next_post();
else :
?>
<?php the_post(); ?>
<div class="post">
<div class="post_category">In <?php if (the_category(' &amp; '))  the_category(); ?></div>
<h2 class="post_title"><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div id="post_byline">
<p class="post_author">By <?php the_author_posts_link(); ?>

<p class="post_dateline"><?php the_time('l, F j, Y'); ?>

</div>
<div class="post_content"><?php the_excerpt(); ?></div>
<div class="post_meta">
<p class="post_info">Tags: <?php if (get_the_tags()) the_tags('',', ',''); ?>

<p class="post_info"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><span class="post_edit"><?php edit_post_link('&nbsp;&#124;&nbsp;Edit', '', ''); ?></span>
</div>
</div><!-- end post -->
<?php endif; ?>
<?php endwhile; ?>
</div>

<!-- **********************Loop 3********************** -->
<div id="even_post">
<?php $postcount = 2; rewind_posts(); ?>
<?php query_posts('showposts=0&offset=1'); ?>
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) != 0 ) : // skip 'odd' posts
$wp_query->next_post();
else :
?>
<?php the_post();  ?>
<div class="post">
<div class="post_category">In <?php if (the_category(' &amp; '))  the_category(); ?></div>
<h2 class="post_title"><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div id="post_byline">
<p class="post_author">By <?php the_author_posts_link(); ?>

<p class="post_dateline"><?php the_time('l, F j, Y'); ?>

</div>
<div class="post_content"><?php the_excerpt(); ?></div>
<div class="post_meta">
<p class="post_info">Tags: <?php if (get_the_tags()) the_tags('',', ',''); ?>

<p class="post_info"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><span class="post_edit"><?php edit_post_link('&nbsp;&#124;&nbsp;Edit', '', ''); ?></span>

</div>
</div><!-- end post -->
<?php endif; ?>
<?php endwhile; ?>
</div>

<div id="next_links">
<p class="next_post"><?php next_posts_link('Older entries') ?>
<p class="previous_post"><?php previous_posts_link('New Entries') ?>

</div>

</div><!-- end content -->

<?php get_footer(); ?>