Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Post thumbnails (in excerpts) not linking to full post (http://forum.bytesforall.com/showthread.php?t=7023)

Fux May 8, 2010 03:00 AM

Post thumbnails (in excerpts) not linking to full post
 
Hi -


1. When I add a thumbnail via the new (as of WP 2.9) "Post Thumbnail" option, this will show up on (e.g.) Multi Post pages in the excerpt. Cool. But I want the image to link to the full post (using the same link as the "[Read more...]" uses. I think this only makes sense. How can this be accomplished? I'm using Atahualpa 3.4.6.

2. On a side note, my "dollar bills" icon on the top right of my posts has been gone for a few months now. Why is that? Is the money I donated used up already? ;)

Fux May 13, 2010 05:14 AM

Anyone?

Is the solution to my question #1 too obvious?, do you want me to find it by myself? I can't seem to find the corresponding template tag for this. But seriously, what I am asking for can't be that strange, can it?

juggledad May 13, 2010 05:42 AM

All Atahualpa is doing is calling the Wordpress function 'the_post_thumbnail()' which inserts the thumbnail into the post excerpt. You might want to post your request on wordpress.org

Fux May 15, 2010 11:16 AM

Oh - yeah, I didn't realize this is the case with any theme. Sorry. I will post the request over there. Thank you, Juggledad!

Fux Dec 15, 2010 05:25 AM

Hey -


why not add this one:

Code:

// THIS LINKS THE THUMBNAIL TO THE POST PERMALINK

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 as a kind of standard option for Atahualpa? I took it from here, works great.

jankph Jan 5, 2011 06:16 AM

Thanks for the tip. Indeed, it really works!


All times are GMT -6. The time now is 01:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.