Hi, I can't get this to work, someone help please.
I want to tell it to show the flash when on front page, show banner if the custom field has a banner, and show a generic image if custom field is empty. I am able to get the flash and custom field to show correctly, however, I can't get the generic banner to show up when the custom field is empty. Could someone let me know what it should be?
Thanks.
<?php
$key="banner";
if (is_front_page())
{
echo "<object width='685' height='255'><param name='movie' value='../wp-content/themes/PPS2010/images/perimeterplasticsurgery2.swf' /><param name='quality' value='high' /><embed src='../wp-content/themes/PPS2010/images/perimeterplasticsurgery2.swf' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='685' height='255'></embed>'</object>";
} elseif ($key) {
echo get_post_meta($post->ID, $key, true);
} else {
echo "<img src='../wp-content/themes/PPS2010/images/flashholder.jpg' />";
}
?>