WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
Auto-lightbox image links - feature image? (2 posts)

  1. hhamernik
    Member
    Posted 1 year ago #

    Does the ... Auto-lightbox image links
    Option work for feature images? It did not work on my site.

    I am using a custom post type with a custom template. I got it to work with this...
    <?php
    if ( has_post_thumbnail()) {
    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
    echo '';
    the_post_thumbnail('one-column-feature');
    echo '
    ';
    }
    ?>

    the rel="lightbox" is hardcoded in now. Works fine, but would be cool if you could add that.

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

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin only filters posts and comments. Give me the filter for the_post_thumbnail and I'll add that too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic