Advertisement
Guest User

wfh

a guest
Oct 5th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.29 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <?php if (have_posts()) :?>
  6.    
  7.     <?php $postCount=0; ?>
  8.        
  9.     <?php while (have_posts()) : the_post();?>
  10.        
  11.     <?php $postCount++;?>
  12.            
  13.     <div class="entry entry-<?php echo $postCount ;?>">
  14.    
  15.         <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  16.    
  17.         <div class="the_content">
  18.  
  19.             <?php the_content('Continue Reading &raquo;'); ?>
  20.  
  21.             <?php if(is_page()) { ?>
  22.                 <ul>
  23.                     <?php global $id; wp_list_pages("title_li=&child_of=$id"); ?>
  24.                 </ul>
  25.             <?php } ?>
  26.  
  27.             <div class="link_pages">
  28.                 <?php wp_link_pages(); ?>
  29.             </div>
  30.        
  31.         </div><!--end the_content-->
  32.        
  33.         <div class="comments">
  34.             <?php comments_template( '', true ); ?>
  35.         </div><!--end comments-->
  36.    
  37.     </div><!--end entry-->
  38.  
  39.     <?php endwhile; ?>
  40.    
  41.         <div id="prevnext">
  42.             <?php previous_posts_link('&laquo; Newer') ?> <?php next_posts_link('Older &raquo;') ?>
  43.         </div><!--end navigation-->
  44.        
  45.     <?php else : ?>
  46.        
  47.         <div class="entry">
  48.             <p>&nbsp;</p>
  49.             <?php get_search_form(); ?>
  50.         </div><!--end the_content-->
  51.         <ul><?php wp_list_categories('title_li=<h2>Categories</h2>'); ?></ul>
  52.         <p>&nbsp</p>
  53.     </div><!--end entry-->
  54.  
  55.     <?php endif; ?>
  56.  
  57. </div><!--end content-->
  58.  
  59. <?php /* get_sidebar(); */ ?>
  60.  
  61. <?php get_footer(); ?>
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement