<?php if( get_post_meta($post->ID, "img", true) ): ?>
<p><a href="<?php echo get_post_meta($post->ID, "imglink", true); ?>"><img src="<?php echo get_post_meta($post->ID, "img", true); ?>"></a></p>
<?php endif; ?>
<?php $my_custom_fieldbutton = get_post_meta($post->ID, 'YOUR-CUSTOM-FIELD', true);?>
<?php if($my_custom_fieldbutton !== '') {
?>
<a href="<?php echo "$my_custom_fieldbutton";?>" title="<?php if (strlen(get_the_title()) >= 45) echo substr(get_the_title(), 0, 45).'...'; else the_title(); ?>"><img src="http://YOUR PATH.png" border="0" alt="XXXXXX"></a>
<?php
}
else
{
}
?>
There are currently 1 users browsing this thread. (0 members and 1 guests)