Advertisement
Guest User

WP_PAGENAVI Error - Category Page

a guest
Jan 8th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.71 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.         <div class="l-inside">
  4.                 <article class="l-constrained">
  5.                                
  6.                         <?php
  7.                                 $count = count($posts);
  8.                         ?>
  9.  
  10.                         <h2>
  11.                                 Results for <a href="<?php echo get_category_link(); ?>">"<?php $category = get_the_category(); echo $category[0]->cat_name; ?>"</a> <?php echo $count ?> Results Found
  12.                         </h2>
  13.  
  14.  
  15.                         <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  16.                        
  17.                         <section class="over-fix sub-header">
  18.                                 <div class="postdate">
  19.                                         <div class="date">
  20.                                                 <?php echo get_the_date('d M'); ?>
  21.                                         </div>
  22.                                 </div>
  23.                                 <div class="title switch-links">
  24.                                         <h1><a href="<?php the_permalink(); ?>" alt="<?php the_title_attribute(); ?>"><?php the_title();?></a></h1>
  25.                                 </div>
  26.                                 <div>
  27.                         <a class="button" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">Read More…</a>
  28.  
  29.                                 </div>
  30.                         </section>
  31.  
  32.                         <?php endwhile; ?>
  33.                        
  34.                         <?php wp_pagenavi(); ?>
  35.  
  36.                 </article>
  37.                        
  38.                 <?php get_sidebar(); ?>
  39.         </div>
  40. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement