• What I am trying to do is display the post content in a popup lightbox effect. I have installed thickbox manually and the effect is working fine; however, I cannot get the post content to display properly. You can see the problem if you visit my site (https://www.appgallery.org) and click on one of the posts. It will pop up in a thickbox effect, but it only shows the content from the first post on the page and duplicates it for all the posts.

    So what is the correct way to display posts in a lightbox effect? I am currently using the “inline” mode of thickbox and this is the code that is giving me the duplicate content:

    <div id="thick" class="thickbox-hide">
       <?php the_content(); ?>
    </div>

    I also tried using the Ajax mode but I couldn’t make it work because none of the functions were defined inside the lighbox. Does anyone know how I would accomplish this? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • BUMP! I am trying the same thing as well; I am using a version of multi box. The script works perfectly when placed within the loop, however the content hidden in the div is always from the first article.

    I have also tried creating multiple “loops” 7 in total for seven days in the week, and received the same results.

    I am a designer not a programmer so this is driving me nuts, however I love the challenge.

    Bump again!
    I need the same thing.

    I’m creating a one page portfolio site:
    jasondaydesign.com

    There’s a similar function here, but it pulls all pages, which I don’t need-
    Just like: https://demo.slimmity.com/coffee-junkie/#folio

    Thoughts? I tried an ajax simple modal version and it broke cufon and did not work.

    Thanks,

    Jason Day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Posts Using Lightbox Effect’ is closed to new replies.