My current thumbnail code </a><?php if(get_post_meta($post->ID, "thumbnail", true)) : ?><a href="<?php the_permalink(); ?>" class="thumb"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" /> PHP: Code for default category <img src="/series-images/<?php echo $category2[0]->category_nicename; ?>.jpg" /> PHP: How can I merge them? Lets say I have no img value in custom field I want it to use the default 1. If I do have a img value in custom field it uses that one not the default 1 Any PhP wordpress pros know about this?