Custom fields question
-
Guys, I have following problem. I want my theme to show thumbnail image for posts on my frontpage. For this I have a code:
<img class="thumbnail" src="<?php echo get_option('home'); ?>/wp-content/themes/mytheme/img/<?php
// this is where the custom field prints images for each Feature
$values = get_post_custom_values("Image"); echo $values[0]; ?>" alt=""/>
What do I need to add to make my posts not to show thumbnail images if I don’t want them, like “if” “ifelse” something like that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Custom fields question’ is closed to new replies.