WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
[resolved] Adding Colorbox class in php not working (3 posts)

  1. tfagency
    Member
    Posted 1 year ago #

    I'm wondering if my code is compatible with Colorbox...

    In my template I am using the following code for featured images:

    <?php
     if ( has_post_thumbnail()) {
       $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
       echo '<a href="' . $large_image_url[0] . '" class="colorbox-link" title="' . the_title_attribute('echo=0') . '" >';
       the_post_thumbnail('thumbnail', array(260,160));
       echo '</a>';
     }
     ?>

    When the thumbnail is clicked it just loads the image by itself. I've been looking for answers but not finding anything exactly like my problem. Can this kind of thing I'm attempting work with Colorbox?

    http://wordpress.org/extend/plugins/jquery-colorbox/

  2. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    see http://wordpress.org/support/topic/plugin-jquery-colorbox-colorbox-no-longer-works-after-upgrading-to-44

    I just released 4.4.1 where this problem is fixed.

    Cheers,
    Arne

  3. tfagency
    Member
    Posted 1 year ago #

    Working now, thanks much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic