The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Custom wordpress Gallery light box images

  • # April 21, 2013 at 11:42 am

    Hi Guys,

    I have created a custom post gallery, which i am displaying every image onto my home page. i have installed a lightbox plug in and each image is receiving the class rel=”lightbox” but for some reason when i click the image it just refreshes the page? any ideas guys?

    My code

    < ?php query_posts( 'post_type=gallery'); ?>
    < ?php while (have_posts()) : the_post(); ?>
    “>< ?php the_post_thumbnail(); ?>
    < ?php endwhile;?>

    # April 21, 2013 at 12:24 pm

    Sorry this is in wordpress.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed