The problem is that your theme has a filter in it that is automatically adding the permalink as an anchor to all featured images, when it should be manually adding those to the post thumbnails in the theme template files instead.
What theme are you using? This filter is probably in the functions.php file.
Thread Starter
Rodolfo
(@animalbrazil)
Thank you for you quick response.
I’m using Smooth from Gorilla Themes and Platinum SEO.
Is there any way to fix it?
Tks
Rod
Yeah, but I can’t look at the source code of the theme because it is commercial. If you can send me a login for the site you are working on I can take a look.
The filter that I was talking about was in the basic-theme-setup.php file:
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 ) ) . '">' . $html . '</a>';
return $html;
}
I commented this code out to disable it and the slideshow links are now working correctly. The post thumbnails that do need permalinks seem to still be working fine, so I think this filter was redundant.