whyisjake

Jake Spurlock

Sep 3rd, 2010
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1.         <?php if (is_home()); { ?>
  2.        
  3.             <div id="home_left">
  4.            
  5.                 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  6.                
  7.                     <?php the_content(); ?>
  8.                
  9.                 <?php endwhile; else: ?>
  10.                     <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  11.                 <?php endif; ?>
  12.                
  13.             </div>
  14.            
  15.             <div id="home_right">
  16.                
  17.                 <?php $cf = get_post_meta($post->ID, 'Right Side', true);
  18.                     if (!empty($cf)) {
  19.                         echo $cf;
  20.                 }
  21.                 ?>
  22.                
  23.             </div>
  24.            
  25.         <?php }  ?>
  26.        
  27.         <?php else { ?>
  28.        
  29.         <div id="blurb">
  30.        
  31.             <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  32.            
  33.             <?php the_title('<h2>', '</h2>'); ?>
  34.            
  35.             <?php the_content(); ?>
  36.                        
  37.             <?php endwhile; else: ?>
  38.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  39.             <?php endif; ?>
  40.            
  41.         </div>
  42.        
  43.         <?php } ?>
Add Comment
Please, Sign In to add comment