Advertisement
Guest User

Untitled

a guest
May 7th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. <?php if ( is_home() ) :
  2.    global $wp_query;
  3.    query_posts( array_merge( $wp_query->query,
  4.                 array( 'cat' => 26 ) )
  5.               );
  6. endif; ?>
  7. <?php if (have_posts()) : ?>
  8.         <?php while (have_posts()) : the_post(); ?>
  9.  
  10.  
  11.             <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  12.                 <h2 class="title"><?php the_title(); ?></h2>
  13.                 <div class="meta">
  14.                  Posted by <?php the_author(); ?> &nbsp;in <?php the_category(', ') ?>
  15.                  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;', 'comm'); ?>
  16.                 </div>
  17.  
  18.                 <div class="entry">
  19.                 <?php if ( function_exists( 'get_the_image' ) ) {
  20.             get_the_image( array( 'custom_key' => array( 'post_thumbnail' ), 'default_size' => 'full', 'image_class' => 'alignleft', 'width' => '223', 'height' => '166' ) ); }
  21.             ?>
  22.                     <?php the_content(''); ?>
  23.                 </div>
  24.  
  25.                
  26.             </div>
  27.  
  28.         <?php endwhile; ?>
  29.  
  30.         <div class="navigation">
  31.        
  32.         <?php
  33.             include('includes/wp-pagenavi.php');
  34.             if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  35.         ?>
  36.         </div>
  37.  
  38.     <?php else : ?>
  39.  
  40.         <h2 class="center">Not Found</h2>
  41.         <p class="center">Sorry, but you are looking for something that isn't here.</p>
  42.         <?php get_search_form(); ?>
  43.  
  44.     <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement