WordPress.org

Forums

Related Links
How do I show the links for "pages" and "custom URLs"? (1 post)

  1. redone975
    Member
    Posted 2 years ago #

    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>

    http://wordpress.org/extend/plugins/related-links/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Related Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.