WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Finally! The link URL (2 posts)

  1. tiagotsaraujo
    Member
    Posted 1 year ago #

    Good morning!

    I added this at functions.php and it worked fine for me:

    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
    	function my_post_image_html( $html, $post_id, $post_image_id ) {
    	$html = '<a href="' . wp_get_attachment_url( get_post_thumbnail_id($post_id)) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '" rel="lightbox">' . $html . '</a>';
    	  return $html;
    	}

    Thank you!

    :)

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Glad to hear you got it working for you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic