Display Single Posts in Lightbox
-
Looking for some help here, searched topics and didn’t come up with much but that’s likely due to me being horrifically incapable of explaining myself properly.
I’m trying to get my single posts to appear in a lightbox. This is in a template that only shows Women’s category blog posts (not the default page, it has to look like a completely separate blog) as the Men’s category takes up the main blog.
Using Lightbox Plus because it looks like one of the more flexible plugins.
<?php query_posts('category_name=women'); ?> <?php while (have_posts()) : the_post(); ?> <a class="lbp-inline-link-1 cboxElement" href="#" id="dess-blog"> <h1 class="entry-title"> <?php the_title(); ?> </h1> <div class="sml-thumb"> <?php the_post_thumbnail( array(250,300) ); ?> </div> </a> <div style="display: none;"> <div id="lbp-inline-href-1" style="padding:10px; background: #fff;"> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-meta"> <?php sambo_entry_meta(); ?> <?php edit_post_link( __( 'Edit', 'sambo' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-meta --> <div class="entry-thumbnail"> <?php the_post_thumbnail(); ?> </div> <?php the_content(); ?> </div> </div> <?php endwhile; ?>
I know, I know, it’s so bad and messy and I’ve just hacked this thing to pieces. Anyone have any suggestions?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Display Single Posts in Lightbox’ is closed to new replies.