How do I show the links for "pages" and "custom URLs"?
-
How would I go about modifying the below code to include the custom links the user can add via the interface?
<?php $related_links = get_related_links('page'); ?> <ul> <?php foreach ($related_links as $link): ?> <li><a href="<?php echo $link['url']; ?>"><?php echo $link['type']; ?>: <?php echo $link['title']; ?></a></li> <?php endforeach; ?> </ul>
- The topic ‘How do I show the links for "pages" and "custom URLs"?’ is closed to new replies.