View Single Post
Old 02-29-2012, 12:29 PM  
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Wordpress Ninjas help please: Conditional IF statement using a custom field..

Google was no help so again I turn to the community. I have some site that I used themes on that needed to have a custom field for the thumbnail (before featured images) like this :

Code:
<?php echo get_post_meta($post->ID, thumb, true); ?>
Now that im adding content to these sites im using either a featured image or placeholder image. How can i correctly write the if statement to include the custom field first then if that isnt there the featured image and finally if that isnt there the placeholder image or code (i really want to use some ad script) .Someone please help with this I keep getting the white screen so i know im doing it wrong.
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote