Following on from the above. Is there a way of allowing multiple links? I’m learning php so excuse the following attempt.
<?php
$links = get_post_meta($post->ID, 'linked_material_url', false);
$text = get_post_meta($post->ID, 'linked_material_text', false);
?>
<ul>
<?php foreach($links as $link) {
echo '<a href="$link">'.$text.'</a><br />';
} ?>
</ul>