![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I know there's been some discussion on changing thumbnails to match as you browse thru categories (still working on that LOL!) but I would like to have the default images show a very specific category rather than most recently added posts - the thought being that I create a "featured" category and when I know I have a client who's coming to see the site, I can drop specific posts into the featured category and those thumbnails would be the first to show so I know my client will immediately find the images I want them to see.
I am assuming I'd change something in the recent.php line of $recent = .... but not sure what. <?php $categories = get_the_category(); $category = $categories[0]; $cat_ID = $category->cat_ID;?> <?php $recent = new WP_Query("cat=$cat_ID&showposts=9"); while($recent->have_posts()) : $recent->the_post();?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /><?php endwhile; ?> Thanks for any insight! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating new options ror limiting RSS feeds to specifc categories | Don C Johnson | General Discussion | 1 | 02-22-2010 02:55 AM |
| category recent thumbnails reverts back to mixed thumbnails | excitedrod | General Discussion | 6 | 08-25-2009 08:34 AM |
| Link on thumbnails in recent.php | arombauts | General Discussion | 3 | 06-01-2009 08:41 PM |
| Customize recent.php to limit thumbnails by category | Sandra | General Discussion | 9 | 05-20-2009 02:23 PM |
| Recent Comments and Thumbnails | thefirsttouch | General Discussion | 1 | 12-26-2008 09:18 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us