Support » Plugin: Related Links » Multiple instances?

  • Resolved redone975


    Is there any way to expand this plugin to allow for multiple instances of this plugin within a page?

    For example, one instance would display related pages (only). While other instances would display related custom post types such as “Whitepapers”, “Case Studies”, etc

    This way I would have more control of their front-end display instead of lumping them into one related information area.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I create a quick mockup to demonstrate the idea… In this scenario, it shows an instance for related Pages and one for a custom post type called “Whitepapers”

    This is what I was looking for:

    <?php $related_links = get_related_links('page'); ?>
        <?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; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple instances?’ is closed to new replies.