WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
WP Jquery Lightbox Outside of WP Blog (2 posts)

  1. Sanphorii
    Member
    Posted 2 years ago #

    Hi, everyone. I recently installed WP Jquery Lightbox on WP, but I want to use it's ability to lightbox images for images outside of the WP blog I have. I have a simple website and I've been using it to post new images everyday if I have to update (it's much simpler to use WP to post images instead of having to code it for someone).

    I installed the WP Jquery Lightbox so that the images on the website, not on the WP blog, will have a lightbox effect, but I'm not sure how to implement it.

    What is the code I need to put on the website page so that the lightbox can effect the images that are on my website which are coming from the WP blog?

    Note:

    This is the code I have on my website to pull the images I've uploaded from the WP blog so I can see them on the website:

    <?php // Include WordPress define('WP_USE_THEMES', false); require('./wordpress/wp-load.php'); query_posts('showposts=5');
    ?>

    <?php while (have_posts()) : the_post(); ?>
    "><?php the_title(); ?>

    <?php the_content(__('(moreā€¦)')); ?>
    <?php endwhile;?><!-- END -->

    Thank you!

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

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    You need to include the scripts and stylesheets. I'd imagine the easiest way is to make sure you call wp_head and wp_footer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic