WP jQuery Lightbox
lightbox and featured images (2 posts)

  1. bobrae3
    Posted 3 years 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?


  2. ulfben
    Plugin Author

    Posted 3 years 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

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic