WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
lightbox and featured images (2 posts)

  1. bobrae3
    Member
    Posted 1 year ago #

    hi i'm working on a portfolio site and i've got a main menu which displays a set of featured image thumbnails that i'd like to link directly to the lightbox. is there a way to wrap the_post_thumbnail() with a link tag? i've tried this(amongst other things):

    <a rel="lightbox[post id]>the_post_thumbnail(size)</a>

    i probably need to use something as an href but i do not want to go to a new page. i'm probably just overlooking something but i'm also fairly new at coding. can you help?

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

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    It's supposed to be like this;

    <a rel="lightbox[post id]" href="<?php your_function_call(); ?>"></a>

    Please read the documentation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic