WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ckayfoote
    Member
    Posted 1 year 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:

    <?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/

  2. ckayfoote
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.