Advertisement
leadbellydesign

Untitled

Feb 9th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1.  <?php
  2.  $args = array( 'post_type' => 'one_column', 'posts_per_page' => 1 );
  3.  $loop = new WP_Query( $args );
  4.  while ( $loop->have_posts() ) : $loop->the_post(); ?>
  5.  <div class="left-module-646">
  6.  <a href="<?php echo get_post_meta($post->ID, '_pbsp_cp', true); ?>">
  7.  <img src="<?php echo get_post_meta($post->ID, '_pbsp_imglink', true); ?>" alt="<?php the_title(); ?> image" style="width:185px; height:104px;" />
  8.  </a>
  9.  <span>
  10.  <h4><a href="<?php echo get_post_meta($post->ID, '_pbsp_cp', true); ?>"><?php the_title(); ?></a></h4>
  11.  <?php the_content(); ?>
  12.  </span>
  13.  </div>
  14.  <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement