WordPress.org

Support

Support » Plugins and Hacks » WP jQuery Lightbox » Using lightbox with a featured image on custom post type

Using lightbox with a featured image on custom post type

  • 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:

    <?php
    $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' ); ?>
    	</article>
    <?php endwhile; ?>

    So I guess I’m confused by

    running jqlb_apply_lightbox($your_content, “any ID”);

    .

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

Viewing 1 replies (of 1 total)
  • And I should clarify, I’m trying to pull this while querying and listing multiple posts. This isn’t a single post…

Viewing 1 replies (of 1 total)
  • The topic ‘Using lightbox with a featured image on custom post type’ is closed to new replies.
Skip to toolbar