• Resolved ThorHammer

    (@thorhammer)


    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 '&nbsp;&middot; <a href="'.$link .'">'.$text.'</a>&nbsp;';
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extreme challenge -custom fields value’ is closed to new replies.