Support » Requests and Feedback » Feature Request: Make post thumbnail a link to the post

  • The new post thumbnail feature is great but in search results and archive pages the thumbnail should be clickable (i.e. linked to the post). Not sure if that can be built into WP or if it has to be built into the theme. I am using Atahualpa on a site and the post thumbnails look great but it sure would be nice if they were clickable.


Viewing 5 replies - 1 through 5 (of 5 total)
  • bellomedia


    i need the same thing too, but no one on the internet seem to care of us 🙂

    Moderator Ipstenu (Mika Epstein)


    That’s your theme, not WP itself.

    Lots of themes do that (Hybrid for example). You just have to design the archive page.

    here’s an option…adding:

    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;

    to functions.php made each thumbnail a link to the permalink

    Moderator Ipstenu (Mika Epstein)


    FYI, as your functions.php is a theme file, this is still a Theme Change 🙂



    This is great! I was looking for this. I’m surprised it’s not a core part of WordPress.
    So I did this and it worked great on my home page but in my search pages (i.e. view all posts in a category), it is no longer active. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request: Make post thumbnail a link to the post’ is closed to new replies.