WordPress.org

Support

Support » Plugins and Hacks » jQuery Colorbox » [Resolved] [Plugin: jQuery Colorbox] Adding Colorbox class in php not working

[Resolved] [Plugin: jQuery Colorbox] Adding Colorbox class in php not working

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: jQuery Colorbox] Adding Colorbox class in php not working’ is closed to new replies.
Skip to toolbar