Grow your CSS skills. Land your dream job.

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.

*May or may not contain any actual "CSS" or "Tricks".