Advertisement
Guest User

page template for 'blog category'

a guest
Jan 29th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.73 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Blog for Category=Blog
  4.  *
  5.  * This template allows you to display the latest posts on any page of the site.
  6.  *
  7.  */
  8.  
  9.     // calling the header.php
  10.     get_header();
  11.  
  12.     // action hook for placing content above #container
  13.     thematic_abovecontainer();
  14.  
  15. ?>
  16.  
  17.         <div id="container">
  18.    
  19.             <?php thematic_abovecontent();
  20.        
  21.             echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n" );
  22.            
  23.             $wp_query = new WP_Query();
  24. $wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged, 'category_name' => 'blog' ) );
  25. $more = 0;
  26.             ?>
  27.  
  28.                 <?php
  29.                
  30.                 // create the navigation above the content
  31.                 thematic_navigation_above();
  32.                
  33.                 // calling the widget area 'index-top'
  34.                 get_sidebar('index-top');
  35.                
  36.                 // action hook for placing content above the index loop
  37.                 thematic_above_indexloop();
  38.                
  39.                 // action hook creating the index loop
  40.                 thematic_indexloop();
  41.                
  42.                 // action hook for placing content below the index loop
  43.                 thematic_below_indexloop();
  44.                
  45.                 // calling the widget area 'index-bottom'
  46.                 get_sidebar('index-bottom');
  47.                
  48.                 // create the navigation below the content
  49.                 thematic_navigation_below();
  50.                
  51.                 ?>
  52.                
  53.             </div><!-- #content -->
  54.        
  55.             <?php thematic_belowcontent(); ?>
  56.        
  57.         </div><!-- #container -->
  58.  
  59. <?php
  60.  
  61.     // action hook for placing content below #container
  62.     thematic_belowcontainer();
  63.  
  64.     // calling the standard sidebar
  65.     thematic_sidebar();
  66.    
  67.     // calling footer.php
  68.     get_footer();
  69.  
  70. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement