title: Displaying Custom post type in Lightbox
body: <p>I am using the Lightbox Plus Colorbox Worpress plugin to try and display custom post types in a lighbox rather than on its own page.</p>
  
  <p>I've used the following code where <code>lbp-inline-href-1</code> is the plugin functionality that puts the content in the lightbox:</p>
  
  <pre><code>&lt;?php
  //WordPress loop for custom post type
  $my_query = new WP_Query('post_type=package&amp;package-category=Kenya&amp;posts_per_page=-1');
  
  while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;
  &lt;a class="lbp-inline-link-1" href="#"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
  &lt;div style="display:none"&gt;
  
  &lt;div id="lbp-inline-href-1" style="padding: 10px;background: #fff"&gt;
  
                 &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
                 &lt;div class="content"&gt;
                 &lt;?php the_content(); ?&gt;
                 &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;  
  
  
  &lt;?php endwhile;  wp_reset_query(); ?&gt;
  </code></pre>
  
  <p>The code partly works, where the content appears in the lightbox however all the posts titles link to the same first post i.e .when i click on the title of any of the posts, the all open a lightbox and show the same content-they all show the first post content.</p>
  
  <p>Please help</p>