villan007

Untitled

Jul 13th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="deals">
  4.  
  5. <?php query_posts('cat=4&showposts=3'); ?>
  6.  
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8.  
  9.     <div class="post-head">
  10.  
  11.         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  12.  
  13.             <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  14.  
  15.            
  16.  
  17.             <div class="entry">
  18.                 <?php the_content(); ?>
  19.             </div>
  20.  
  21.    
  22.  
  23.         </div>
  24. </div>
  25.     <?php endwhile; ?>
  26.  
  27. <?php endif; ?>
  28. </div>
  29.  
  30. <div id="content">
  31.     <?php query_posts('cat=1'); ?>
  32.  
  33.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  34.  
  35.         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  36.  
  37.             <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  38.  
  39.             <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
  40.  
  41.             <div class="entry">
  42.                 <?php the_content(); ?>
  43.             </div>
  44.  
  45.             <div class="postmetadata">
  46.                 <?php the_tags('Tags: ', ', ', '<br />'); ?>
  47.                 Posted in <?php the_category(', ') ?> |
  48.                 <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
  49.             </div>
  50.  
  51.         </div>
  52.  
  53.     <?php endwhile; ?>
  54.  
  55.     <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
  56.  
  57.     <?php else : ?>
  58.  
  59.         <h2>Not Found</h2>
  60.  
  61.     <?php endif; ?>
  62.    
  63.     </div>
  64.  
  65. <?php get_sidebar(); ?>
  66.  
  67. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment