Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1.     <?php if ( have_posts() ): ?>
  2.  
  3.    
  4.  
  5.         <div class="blog-traditional">
  6.  
  7.    
  8.  
  9.             <?php while ( have_posts() ): the_post(); ?>
  10.  
  11.        
  12.  
  13.                 <article>
  14.  
  15.                    
  16.  
  17.                     <?php if ( has_post_format( 'link' )) { # Link posts
  18.  
  19.                         $post_link = get_post_meta( $post->ID, 'reach_link_url', true );                   
  20.  
  21.                     } else {
  22.  
  23.                         $post_link = get_permalink();
  24.  
  25.                     } ?>
  26.  
  27.                    
  28.  
  29.                     <h2><a href="<?php echo $post_link; ?>"><?php the_title(); ?></a></h2>
  30.  
  31.                    
  32.  
  33.                     <div class="two-thirds">
  34.  
  35.                        
  36.  
  37.                         <?php if ( has_post_thumbnail() ) { ?>
  38.  
  39.                            
  40.  
  41.                             <!-- thumbnail -->
  42.  
  43.                             <?php $image = vt_resize( get_post_thumbnail_id(), '', 484, 999, false ); ?>
  44.  
  45.                             <a class="blog-traditional-thumbnail" href="<?php echo $post_link; ?>" alt="" />                               
  46.  
  47.                                 <img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="" />
  48.  
  49.                             </a>
  50.  
  51.                            
  52.  
  53.                         <?php } ?>
  54.  
  55.                    
  56.  
  57.                         <?php the_excerpt(); ?>
  58.  
  59.                        
  60.  
  61.                     </div>
  62.  
  63.                     <div class="third end">
  64.  
  65.                         <?php create_post_meta(); ?>
  66.  
  67.                     </div>
  68.  
  69.                    
  70.  
  71.                 </article>
  72.  
  73.            
  74.  
  75.             <?php endwhile; ?>
  76.  
  77.    
  78.  
  79.         <?php pagination(); ?>
  80.  
  81.    
  82.  
  83.         </div>
  84.  
  85.    
  86.  
  87.     <?php endif; ?>
  88.  
  89.  
  90.  
  91. </div> <!--#content -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement