Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

Post thumbnails (in excerpts) not linking to full post


  #1  
Old May 8, 2010, 04:00 AM
Fux
 
142 posts · Apr 2009
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?

Last edited by Fux; May 8, 2010 at 04:08 AM.
  #2  
Old May 13, 2010, 06:14 AM
Fux
 
142 posts · Apr 2009
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?
  #3  
Old May 13, 2010, 06:42 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old May 15, 2010, 12:16 PM
Fux
 
142 posts · Apr 2009
Oh - yeah, I didn't realize this is the case with any theme. Sorry. I will post the request over there. Thank you, Juggledad!
  #5  
Old Dec 15, 2010, 06:25 AM
Fux
 
142 posts · Apr 2009
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.
  #6  
Old Jan 5, 2011, 07:16 AM
jankph
 
93 posts · Jul 2009
ATA 3.6.4 and WP 3.1
Thanks for the tip. Indeed, it really works!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
One Full post and then excerpts on Category newfield_no1 Excerpts, Read more, Pagination 8 Apr 21, 2010 01:53 PM
How to change Excerpts option to full post? gwpad Sidebars & Widgets 1 Mar 3, 2010 08:27 AM
Showing Excerpts or Full Post Depending Upon Number of Posts LindaS Excerpts, Read more, Pagination 0 Sep 8, 2009 07:27 AM
Atahualpa 3.4 : EXCERPTS new option to read the full post after [...] does not work benoit Excerpts, Read more, Pagination 2 Jul 9, 2009 07:45 PM
gallery (grid) of post excerpts w/ thumbnails viewdesigninc Atahualpa 3 Wordpress theme 1 Jun 4, 2009 09:08 AM


All times are GMT -6. The time now is 08:40 PM.


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