Advertisement
Guest User

Untitled

a guest
Jul 14th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <div class="places-nav">
  2. <?php $args = array('post_type' => 'trips');
  3.     $loop = new WP_Query( $args ); 
  4.      
  5.     //Display the contents       
  6.     while ( $loop->have_posts() ) : $loop->the_post(); ?>
  7.         <a href="#" onclick="get_post_content(<?php the_ID(); ?>);"><h1 class="entry-title"><?php the_title(); ?></h1></a>
  8.     <?php endwhile;?>
  9. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement