Advertisement
Guest User

Problem page Template Code

a guest
Dec 10th, 2010
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.81 KB | None | 0 0
  1. get_header(); ?>
  2.  
  3.     <?php do_atomic( 'before_content' ); // Before content hook ?>
  4.  
  5.     <div id="content">
  6.  
  7.         <?php do_atomic( 'open_content' ); // Open content hook ?>
  8.  
  9.         <div class="hfeed">
  10.  
  11.             <?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
  12.  
  13.             <?php $wp_query = new WP_Query( array( 'caller_get_posts' => true,  'orderby' => 'date', 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1 ) ) ); ?>
  14.  
  15.             <?php if ( $wp_query->have_posts() ) : ?>
  16.  
  17.                 <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
  18.  
  19.                     <?php do_atomic( 'before_entry' ); // Before loop hook ?>
  20.  
  21.                     <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  22.  
  23.                         <?php do_atomic( 'open_entry' ); // Open loop hook ?>
  24.  
  25.             <div style="float:right;margin-top:15px;">          <?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?></div>
  26.  
  27.                         <div style="font-size:18px;"><?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?></div>
  28.  
  29.                         <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published] [entry-comments-link] [entry-popup-shortlink] [entry-edit-link before=" | "]</div>' ); ?>
  30.  
  31.                         <div class="entry-summary">
  32.                             <?php the_excerpt(); ?>
  33.                         </div><!-- .entry-summary -->
  34.  
  35.                         <?php do_atomic( 'close_entry' ); // Close loop hook ?>
  36.  
  37.                     </div><!-- .hentry -->
  38.  
  39.                     <?php do_atomic( 'after_entry' ); // After loop hook ?>
  40.  
  41.                 <?php endwhile; ?>
  42.  
  43.             <?php endif; ?>
  44.  
  45.         </div><!-- .hfeed -->
  46.  
  47.         <?php do_atomic( 'close_content' ); // Close content hook ?>
  48.  
  49.         <?php get_template_part( 'loop-nav' ); ?>
  50.  
  51.     </div><!-- #content -->
  52.  
  53.     <?php do_atomic( 'after_content' ); // After content hook ?>
  54.  
  55. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement