Home › Forums › SKT Biz/Corp Theme Support › link featured image to blog post
- This topic has 12 replies, 3 voices, and was last updated 6 years, 11 months ago by Sonl Sinha.
-
AuthorPosts
-
November 30, 2017 at 7:55 pm #88610
How can I link the featured image to its blog post?
Tried this but it didnt work: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 );
December 1, 2017 at 6:03 am #88644Hi,
Kindly show us your website URL so that we can assist further.
Regards,
ChrisDecember 1, 2017 at 7:03 am #88658Thanks Chris – sent to you via email as the site is still in maintenance mode / under construction. BR Peter
December 4, 2017 at 5:31 am #88756Okay cool.
Regards,
ShriDecember 4, 2017 at 5:31 am #88757Okay cool.
Regards,
ShriDecember 6, 2017 at 7:31 pm #89091Hi guys,
did you receive my email?
Regards PeterDecember 12, 2017 at 5:41 pm #89469Can anyone support with this issue? Didn’t get it to work yet. 🙁 Your help would be highly appreciated. Thank you! Regards Peter
December 13, 2017 at 7:09 am #89506Hi,
Issue resolved from our end. Kindly check and confirm.
Regards,
ChrisDecember 15, 2017 at 8:28 am #89685Hi Chris,
thanks for your support – can you tell me what you changed please? – I see no change on my page.
FYI:
The red area (image) should be linked to the read more of the post
Thank you! BR PeterDecember 18, 2017 at 9:31 am #89841Hi,
Kindly send us your URL of the site and WordPress admin details (Username & Password) via sktthemes.net/contact Please mention this forum URL while replying so that we understand what needs to be done.
Regards,
ChrisDecember 19, 2017 at 10:39 am #89929Hi,
Issue have been resolved from our end. Kindly check and confirm.
Regards,
ChrisDecember 20, 2017 at 5:51 pm #90120Hi Chris,
great, thanks for solving this!
Regards PeterDecember 21, 2017 at 5:21 am #90141Hi Peter,
If you found our service good kindly review us here: https://www.sktthemes.org/forums/topic/reviews-and-testimonials/page/13/
Regards,
Chris -
AuthorPosts
- You must be logged in to reply to this topic.