Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <div id="content">
- <?php $count = 1;
- $col_count = 3;
- $num_of_posts = $wp_query->post_count;
- $post_per_column = ceil($num_of_posts / $col_count); ?>
- <div id="col1">
- <?php query_posts($query_string . '&cat=-121,-123,-124,-125,-126'); ?>
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div class="item entry" id="post-<?php the_ID(); ?>"></div>
- <?php global $post; ?>
- <?php
- $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' );
- ?>
- <div class="post" style="background: url(<?php echo $src[0]; ?>) #fff no-repeat;">
- <div class="post_title"><h2><a href="<?php the_permalink(); ?>" title="<?php echo get_the_excerpt(); ?>"><?php the_title(); ?></a></h2></div>
- <div class="post_comments"><div class="date"><?php the_date('m/d/y'); ?></div><a href="<?php the_permalink(); ?>#comments"><?php comments_number('no comments', '1 comment', '% comments' );?></a></div>
- </div>
- <?php if($count == $post_per_column) { echo '</div><div id="col2">'; }
- if($count == 2*$post_per_column) { echo '</div><div id="col3">'; }
- $count++;
- endwhile;
- ?>
- <?php endif; ?>
- </div>
- <div class="nav-previous"><?php next_posts_link( __( '« Older' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer »' ) ); ?></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement