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
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    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
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23529
    • Total: 23529
    Member since: August 16, 2013

    Hi,

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

    Regards,
    Chris

    #88658
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    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
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6705
    • Total: 6713
    Member since: June 12, 2013

    Okay cool.

    Regards,
    Shri

    #88757
    SKT Themes
    Keymaster
    • Topics: 8
    • Replies: 6705
    • Total: 6713
    Member since: June 12, 2013

    Okay cool.

    Regards,
    Shri

    #89091
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    Member since: September 27, 2016

    Hi guys,
    did you receive my email?
    Regards Peter

    #89469
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    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
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23529
    • Total: 23529
    Member since: August 16, 2013

    Hi,

    Issue resolved from our end. Kindly check and confirm.

    Regards,
    Chris

    #89685
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    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
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23529
    • Total: 23529
    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
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23529
    • Total: 23529
    Member since: August 16, 2013

    Hi,

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

    Regards,
    Chris

    #90120
    Peter
    Participant
    • Topics: 12
    • Replies: 52
    • Total: 64
    Member since: September 27, 2016

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

    #90141
    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 23529
    • Total: 23529
    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.