WP jQuery Lightbox
Using lightbox with a featured image on custom post type (2 posts)

  1. ckayfoote
    Posted 3 years ago #

    I'm not sure what you mean here:
    Apply lightbox to any content by running jqlb_apply_lightbox($your_content, "any ID"); It returns a string with all image links lightboxed, grouped by "any id".

    The lightbox displays fine, but it's not pulling the gallery images. Here's my code:

    $args = array( 'post_type' => 'portfolio_posts', 'posts_per_page' => 10 );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post(); ?>
    	<article class="post">
    	<a href="" class="text-link-block" rel="lightbox"><?php the_title(); ?></a>
    	<?php the_post_thumbnail( 'featured-thumb' ); ?>
    <?php endwhile; ?>

    So I guess I'm confused by

    running jqlb_apply_lightbox($your_content, "any ID");


  2. ckayfoote
    Posted 3 years ago #

    And I should clarify, I'm trying to pull this while querying and listing multiple posts. This isn't a single post...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.