WPIntell

Source evidence

Multiple instances?

Related Links · support · 2013-02-07T05:44:00+00:00

mixedsentiment
lowseverity
0.56relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 22 rows with source links

9.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
redone975 resolved
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/ 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 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>

Comments

2 shown
redone975 2013-02-07T06:14:00+00:00

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

redone975 2013-02-08T00:24:00+00:00

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>