Feature Image Link to post
-
Hi….
On free version feature image link to post working fine but on pro doesn’t.
Tried some Codes for function.php, or plugin from wordpress still doesn’t works.
Pls, can u provide fix. PS: Im using three column blog template…
function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {
If (! is_singular()) {
$html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
return $html;
} else {
return $html;
}
}
add_filter( 'post_thumbnail_html', 'wpb_autolink_featured_images', 10, 3 );
-
This topic was modified 4 years, 8 months ago by
Ivan Petrić.
Hi,
Can you share your site URL and please share a screenshot of which post featured image link is not working it will help us to provide you a better solution.
Many Thanks
I will send u email with log in credentials. I made some tweaks, but also I tried fresh install on localhost, feature img link not working…wit code provided.
Also, i need to inform u, I fixed tag page, taking some codes from search.php page.
PS: I removed link to post code from funcion.php
-
This reply was modified 4 years, 8 months ago by
Ivan Petrić.
Hi,
We have received your mail we will give you an update in a short while.
Many Thanks
Feature image working, so I suppose I make it work. Thank u. Best regards
Hi,
You are welcome.
If you have any issue please feel free to contact us.
Many Thanks
- You must be logged in to reply to this topic.