This is probably of use to someone as well as me!
<?php $values = get_post_custom_values("related");
if ($values[0]!="") {
$mykey_values = get_post_custom_values('related');
echo "<H3 class=\"related\">Related Links:</h3>";
echo "<ul class=\"related_list\">";
foreach ( $mykey_values as $key => $value[0] )
{
echo "<a href='$key'>$value[0]</a>";
}
echo "</ul>";
}
?>
Hi Iridiax
Thanks for taking the time. As mentioned I am very unskilled in php but am making some effort to get to grips with it. Unfortunately I am not a natural…
I don’t know if it would be possible to give an example of how to impliment foreach in the code I’ve written. I would be very grateful. Thankyou…