Title: Multiple instances?
Last modified: August 20, 2016

---

# Multiple instances?

 *  Resolved [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/multiple-instances-3/)
 * 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.
 * [http://wordpress.org/extend/plugins/related-links/](http://wordpress.org/extend/plugins/related-links/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/multiple-instances-3/#post-3444975)
 * 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”
 * [http://swept.co/_dev/related-link-expanded.png](http://swept.co/_dev/related-link-expanded.png)
 *  Thread Starter [redone975](https://wordpress.org/support/users/redone975/)
 * (@redone975)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/multiple-instances-3/#post-3444984)
 * This is what I was looking for:
 *     ```
       <?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>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multiple instances?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/related-links.svg)
 * [Related Links](https://wordpress.org/plugins/related-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/related-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/related-links/)
 * [Active Topics](https://wordpress.org/support/plugin/related-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/related-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/related-links/reviews/)

## Tags

 * [metabox](https://wordpress.org/support/topic-tag/metabox/)

 * 2 replies
 * 1 participant
 * Last reply from: [redone975](https://wordpress.org/support/users/redone975/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/multiple-instances-3/#post-3444984)
 * Status: resolved