View Single Post
Old 10-11-2011, 07:30 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Dejan View Post
First of all enable "Custom Fields" under "Screen Options".
under "Name" put "thumb" and under "Value" insert link to your 500px picture.
Next you need to edit your index.php file and add this:

Code:
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>

				<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

			<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
why use custom fields?

all that extra work is pointless.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote