link featured image to blog post

Home Forums SKT Biz/Corp Theme Support link featured image to blog post

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #88610
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    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 );
    #88644
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi,

    Kindly show us your website URL so that we can assist further.

    Regards,
    Chris

    #88658
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    Thanks Chris – sent to you via email as the site is still in maintenance mode / under construction. BR Peter

    #88756
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Okay cool.

    Regards,
    Shri

    #88757
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Okay cool.

    Regards,
    Shri

    #89091
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    Hi guys,
    did you receive my email?
    Regards Peter

    #89469
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    Can anyone support with this issue? Didn’t get it to work yet. 🙁 Your help would be highly appreciated. Thank you! Regards Peter

    #89506
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi,

    Issue resolved from our end. Kindly check and confirm.

    Regards,
    Chris

    #89685
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    Hi 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 Peter

    #89841
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi,

    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,
    Chris

    #89929
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi,

    Issue have been resolved from our end. Kindly check and confirm.

    Regards,
    Chris

    #90120
    PeterPeter
    Participant
    • Topics: 13
    • Replies: 54
    • Total: 67
    Member since: September 27, 2016

    Hi Chris,
    great, thanks for solving this!
    Regards Peter

    #90141
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Peter,

    If you found our service good kindly review us here: https://www.sktthemes.org/forums/topic/reviews-and-testimonials/page/13/

    Regards,
    Chris

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.