Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- </div><div id="gridContainer">
- <?php
- if (is_home()) {
- query_posts("cat=-94"."&posts_per_page=9");
- }
- ?>
- <?php
- $c = 1; //init counter
- $bpr = 3; //boxes per row
- if(have_posts()) :
- while(have_posts()) :
- the_post();
- ?>
- <div class="gridpost" id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink(); ?>"><div class="postImage" id="fade">
- <div class="postData"><div id="gridTitle"><?php the_title(); ?></div></div><?php the_post_thumbnail('grid-post-image'); ?></a>
- </div>
- <?php if($c%3 == 0){
- $c = 'last';
- }else{
- $c = '';
- }
- $c++;
- ?>
- </div>
- <?php
- if($c == $bpr) :
- ?>
- <div class="clr"></div>
- <?php
- $c = 0;
- endif;
- ?>
- <?php
- $c++;
- endwhile;
- endif;
- ?>
- <div class="clr"></div>
- <div class="ohmbbpagenav">
- <div class="pagination">
- <?php
- global $wp_query;
- $big = 999999999; // need an unlikely integer
- echo paginate_links( array(
- 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
- 'format' => '?paged=%#%',
- 'current' => max( 1, get_query_var('paged') ),
- 'total' => $wp_query->max_num_pages
- ) );
- ?>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement