Any way to use php inside a post? What I want to do is have a post, with an image linked to the permalink, using the if is_home to show the image on the main page, but not replicated on the single page.
Possible, or not?
Possible, or not?


<?php if ( is_home() ) { ?>
<a href="http://www.domain.com/?p=permalink"><img src="http://www.domain.com/xyz.jpg" border="0"></a>
some text
<?php } ?>
<!--more-->


<?php the_post_thumbnail( array (640,480) );?>
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
<?php get_post_custom_values("featured-images")( array (640,480) );?>
<img src="<?php echo get_post_meta($post->ID, 'CUSTOM-FIELD-NAME', true); ?>" alt="" height="480" width="640" />

<img src="<?php echo get_post_meta($post->ID, 'featured-images', true); ?>" alt="" height="480" width="640" />


Comment