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)
-   -   [SOLVED] Making Thumbnails Clickable (http://forum.bytesforall.com/showthread.php?t=10763)

hospitalera Oct 27, 2010 04:06 PM

[SOLVED] Making Thumbnails Clickable
 
Is there a simple way to make the image thumbnails in the excerpts click-able, so that they link to the full post? Thanks, SY

hospitalera Oct 27, 2010 05:39 PM

Latest WP and latest Atahualpa option. And yes, I would like to link the thumbnail / featured image thumbnail that is displayed with the excerpts to the full post, SY

juggledad Oct 28, 2010 07:47 AM

Here is a fix for this. Edit bfa_post_parts.php and change line 124 (version 3.5.3) from
HTML Code:

                if (function_exists('the_post_thumbnail') AND !function_exists('tfe_get_image')) the_post_thumbnail();
to
HTML Code:

                if (function_exists('the_post_thumbnail') AND !function_exists('tfe_get_image'))
                        if(has_post_thumbnail()): ?>
                                <a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(); ?></a>
      <?php endif;


hospitalera Oct 28, 2010 08:29 AM

Worked like a charm, Juggledad! Thanks ever so much, SY


All times are GMT -6. The time now is 10:25 AM.

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