![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I need to get auto thumbnails to work on the latest corporate them if possible. I have tried using a code snippet from the church theme with no luck. Is there a good plugin that can do this for me? Or does someone know how to edit the theme to include this? Many thanks. EDIT: I solved this problem now. Here is the answer for future reference: Around Line 28/29 on the home.php script, Replace this line:- <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" alt="<?php the_title(); ?>" /></a> With this snippet:- <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a> Remember to add the timthumb.php script into the tools folder also, Get it from here. Also, Make sure your timthumb.php is set to 755 permissions. ( Note: I have changed the custom field from thumbnail to thumb. ) Thanks |
| Tags |
| thumbnails |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto Sized Thumbnails? | Susan Hope | General Discussion | 3 | 11-03-2009 09:06 PM |
| Auto thumbnails - help?? | doone | General Discussion | 9 | 10-25-2009 11:05 PM |
| Custom thumbnails/disable auto thumbnails | 3lite | General Discussion | 3 | 07-18-2009 03:12 AM |
| Using Auto-Thumbnails | dgs | General Discussion | 3 | 07-17-2009 01:04 PM |
| Auto-Sized Thumbnails | Dwiz | General Discussion | 1 | 07-08-2009 04:47 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us