ThemeShaper Forums » Thematic


Link fail for slideshow images placed via post thumbnail

(2 posts)
  • Started 10 years ago by lastraw
  • Latest reply from lastraw
  • This topic is not resolved
  1. Still the same problem linking images in slideshows to their respective posts.
    (links to mysite/slide/mypost instead of mysite/mycategory/mypost)

    This time I'm using meteor slideshow. The developer Josh Leuze was nice enough to take a look and it doesn't seem to be the plugin.

    It made me wonder that since it works through uploading the images through the featured images (thumbnail) and post that maybe something in how I wrote the function.php file I was overwriting the plug in's link settings?

    function.php includes this:

    // ads to each thumbnail a link to the permalink
    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="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '" rel="nofollow">' . $html . '</a>';
    	return $html;
    function thumbnail_caption($html, $post_id, $post_thumbnail_id, $size, $attr)
      $attachment =& get_post($post_thumbnail_id);
      // post_title => image title
      // post_excerpt => image caption
      // post_content => image description
      if ($attachment->post_excerpt || $attachment->post_content) {
        $html .= '<p class="thumbcaption">';
        if ($attachment->post_excerpt) {
          $html .= '<span class="captitle">'.$attachment->post_excerpt.'</span> ';
        $html .= $attachment->post_content.'</p>';
    	return $html;
    add_action('post_thumbnail_html', 'thumbnail_caption', null, 5);

    If that's not it, does anyone have any other ideas? (he suggested .htacess



    Posted 10 years ago #
  2. OK yeah that's it.

    Now I need to exclude the site-wide thumbnail linking code from the meteor slideshow thumbnails. How would I write that as a conditional?

    I know I should know this but it is Saturday night post cocktail, so um yeah.


    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.