Advertisement
Guest User

catPosts

a guest
Sep 23rd, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3.     <div id="container">
  4.        
  5.         <div id="content">
  6.  
  7.             <h2 class="page-title"><?php _e( 'Category Archives:', 'sandbox' ) ?> <span><?php single_cat_title() ?></span></h2>
  8.             <div class="doc_sub_list">Documents: <?php wp_list_categories('child_of=6&title_li='); ?></div>
  9.            
  10.             <div id="search"><?php include (TEMPLATEPATH . '/category-search.php'); ?></div>
  11.            
  12.                 <?php while ( have_posts() ) : the_post() ?>
  13.                
  14.                     <div id="catBox">
  15.                         <div id="catTitle"><?php wp_list_categories('include=16&title_li='); ?></div>
  16.                         <div id="document">
  17.                             <div id="docIcon"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"></a></div>
  18.                             <div id="docTitle">
  19.                                
  20.                                 <?php $bp_posts = get_posts('category=16&numberposts=10'); foreach($bp_posts as $post) : setup_postdata($post); ?>
  21.                                     <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a>
  22.                                 <?php endforeach; ?>
  23.                                
  24.                             </div>
  25.                         </div>
  26.                     </div>
  27.                
  28.                 <?php endwhile; ?>
  29.  
  30.         </div><!-- #content -->
  31.     </div><!-- #container -->
  32.  
  33. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement