Advertisement
roybatty

wp cat template

Feb 7th, 2012
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content" class="clearfix"> <div id="main" class="grid_8 clearfix" role="main">
  4.         <h1>Tech Blog</h1>
  5.         <img src="<?php bloginfo('stylesheet_directory'); ?>/images/lsaweb-headers_tech_blog.jpg" width="668" height="207" />
  6.        
  7.         <?php echo '<pre>';
  8. print_r($wp_query);
  9. echo '</pre>';?>
  10.        
  11.        
  12.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13.         <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
  14.             <header> <div class="post-date"> <div class="month">
  15.                         <?php the_time('M') ?>
  16.                     </div>
  17.                     <div class="day">
  18.                         <?php the_time('d') ?>
  19.                     </div>
  20.                     <div class="year">
  21.                         <?php the_time('Y') ?>
  22.                     </div>
  23.                 </div>
  24.                 <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
  25.                     <?php the_title(); ?>
  26.                     </a></h1>
  27.             </header>
  28.             <!-- end article header -->
  29.            
  30.             <section class="post_content clearfix" style="border-bottom: thin solid #EAEAEA;">
  31.                 <?php the_post_thumbnail( 'bones-thumb-300' ); ?>
  32.                 <?php the_content(); ?>
  33.             </section>
  34.             <!-- end article section -->
  35.            
  36.         </article>
  37.         <!-- end article -->
  38.        
  39.         <?php comments_template(); ?>
  40.         <?php endwhile; ?>
  41.         <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
  42.         <?php page_navi(); // use the page navi function ?>
  43.         <?php } else { // if it is disabled, display regular wp prev & next links ?>
  44.         <nav class="wp-prev-next">
  45.             <ul class="clearfix">
  46.                 <li class="prev-link">
  47.                     <?php next_posts_link(_e('&laquo; Older Entries', "bonestheme")) ?>
  48.                 </li>
  49.                 <li class="next-link">
  50.                     <?php previous_posts_link(_e('Newer Entries &raquo;', "bonestheme")) ?>
  51.                 </li>
  52.             </ul>
  53.         </nav>
  54.         <?php } ?>
  55.         <?php else : ?>
  56.         <article id="post-not-found">
  57.             <header>
  58.                 <h1>Not Found</h1>
  59.             </header>
  60.             <section class="post_content">
  61.                 <p>Sorry, but the requested resource was not found on this site.</p>
  62.             </section>
  63.             <footer> </footer>
  64.         </article>
  65.         <?php endif; ?>
  66.     </div>
  67.     <!-- end #main -->
  68.    
  69.     <?php get_sidebar('services'); ?>
  70. </div>
  71. <!-- end #content -->
  72.  
  73. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement