Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts( array( 'post_type' => array('post', 'news'), 'posts_per_page' => 12, 'category_name' => 'news', 'paged' => get_query_var('paged') ) ); ?>
- <?php $odd_or_even = 'odd'; ?>
- <?php while ( have_posts() ) : the_post() ?>
- <div id="post-<?php the_ID() ?>" class="post <?php echo $odd_or_even; ?><?php $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?>">
- <div class="attachedimage">
- <a href="<?php the_permalink() ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a>
- </div>
- <h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title() ?></a></h2>
- <div class="post-meta">Posted on <?php the_time('F j, Y'); ?> in <?php the_category(', '); ?></div>
- <div class="post-content">
- <?php global $more; $more = 0; ?>
- <?php the_content('Read More »'); ?>
- </div>
- <div class="clear"></div>
- <hr />
- </div><!-- .post -->
- <?php if(!$show_ads){ ?>
- <?php echo adrotate_block(1); ?>
- <?php $show_ads = 1; } ?>
- <?php endwhile ?>
- <?php if (function_exists("emm_paginate")) {
- emm_paginate();
- } ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement