StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-19-2009, 07:46 AM
michaelgcohen michaelgcohen is offline
Registered User
Genesis Member
 
Join Date: Feb 2009
Posts: 38
Default Call Specific Thumbnails - Very Easy

Hi

Since I always receive tremendous support here I thought I would offer a quick solution I used.

Although the auto resize for the thumnails is a nice feature many photographers will be picky and want to define their own thumbnail images.

I had the girl I am working with create her thumbnails at 50x50 (you can choose your own size) and then I changed one small piece of code in the home.php, mainindex.php etc...

You simply change this (note I have borders off etc)

Code:
<?php $recent = new WP_Query("showposts=11&offset=1"); while($recent->have_posts()) : $recent->the_post();?>
		[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />				
		<?php endwhile; ?>
To this (the only change is the "image" to "thumbnail"

Code:
<?php $recent = new WP_Query("showposts=11&offset=1"); while($recent->have_posts()) : $recent->the_post();?>
		[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />				
		<?php endwhile; ?>
Then when creating a post upload the thumbnail image, define a custom field and put the url...
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Specific category page with only title and thumbnails subhramani General Discussion 3 09-25-2010 01:48 PM
Call specific post onto homepage ukbob General Discussion 2 01-02-2009 07:59 AM


All times are GMT -5. The time now is 12:04 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.