I'm using the following code to display a custom value. The custom value being 'website'
<?php
$custom_fields = get_post_custom($post_id); //Current post id
$my_custom_field = $custom_fields['website']; //key name
foreach ( $my_custom_field as $key => $value )
echo $key . " => <a href='" . $value . "'>Click Here</a><br />";
?>
However, before the 'Click here' i'd like to include another custom value, thumb.
So the output would be:
Value of custom field thumb
Value of custom field website
Thanks.
<?php $custom_fields = get_post_custom($post_id); //Current post id $my_custom_field = $custom_fields['thumb']; //key name foreach ( $my_custom_field as $key => $value ) echo "<img src='" . $value . "'>"; ?>Which did the trick – Sledge81 Aug 4 '11 at 17:59