I need to have several links listed from my custom fields. With the script below I can output one url and the link text. But, If I duplicate the custom field value, it still only echoes the first input. How to mod this script in order to output several custom field values?
<?php
$link = get_post_meta($post->ID, 'link_url', true);
$text = get_post_meta($post->ID, 'link_text', true);
if ($link){
echo ' · <a href="'.$link .'">'.$text.'</a> ';
}
?>