![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all
I've just got these templates today and am setting up my first project. I know many of my customers have no chance of dealing with the thumbnailing and custom fields so I've just added this plugin which I've used before http://return-true.com/2008/12/wordpres ... hed-image/ It pulls the first image from a post automatically and thumbnails it for you. There are other custom setups you can use too In home.php around line 20 just add a line to this code Code:
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
Code:
<?php the_attached_image('',$recent); ?>
Hope this is useful! Lee |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Home page thumbnails help | tango | General Discussion | 10 | 03-12-2009 01:59 PM |
| Thumbnails on home page | Botunda | General Discussion | 3 | 02-06-2009 02:01 PM |
| Different thumbnails on home page | charlieomalley | General Discussion | 2 | 01-29-2009 06:59 AM |
| hpmain on home page thumbnails to video thumbnails? | gordonmartin | General Discussion | 19 | 11-02-2008 02:26 PM |
| Different thumbnails on home page | charlieomalley | General Discussion | 1 | 12-31-1969 06:00 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