ajidht

wp

Sep 20th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <?php global $theme; get_header(); ?>
  2.  
  3.     <div id="main">
  4.    
  5.         <?php $theme->hook('main_before'); ?>
  6.  
  7.         <div id="content">
  8.        
  9.             <?php $theme->hook('content_before'); ?>
  10.            
  11.             <?php
  12.                 if (have_posts()) : while (have_posts()) : the_post();
  13.                     /**
  14.                      * The default post formatting from the post.php template file will be used.
  15.                      * If you want to customize the post formatting for your homepage:
  16.                      *
  17.                      *   - Create a new file: post-homepage.php
  18.                      *   - Copy/Paste the content of post.php to post-homepage.php
  19.                      *   - Edit and customize the post-homepage.php file for your needs.
  20.                      *
  21.                      * Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part
  22.                      */
  23.  
  24.                     get_template_part('post', 'homepage');
  25.                    
  26.                 endwhile;
  27.                
  28.                 else :
  29.                     get_template_part('post', 'noresults');
  30.                 endif;
  31.                
  32.                 get_template_part('navigation');
  33.             ?>
  34.            
  35.             <?php $theme->hook('content_after'); ?>
  36.        
  37.         </div><!-- #content -->
  38.    
  39.         <?php get_sidebars(); ?>
  40.        
  41.         <?php $theme->hook('main_after'); ?>
  42.        
  43.     </div><!-- #main -->
  44.    
  45. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment