WPIntell

Source evidence

Meta box

Related Links · support · 2013-03-13T18:47:00+00:00

mixedsentiment
mediumseverity
0.78relevance
3replies
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 it possible to extend the plugin to acquire a value from a meta box for a custom post type? I’d like to use a URL from the meta box instead of the permalink. Meta box ID: ecpt_wp-pdf-document Thanks. http://wordpress.org/extend/plugins/related-links/ Anyone? the related links function returns an array. every array item also includes the post_id. just make a meta-query with this post_id and the meta-name. Thanks for the reply… I was able to solve it by using the code similar to this: <ul> <?php $related_documents = get_related_links('documents'); ?> <?php foreach ($related_documents as $rdocument): ?> <li><a href="<?php echo get_post_meta($rdocument['id'], 'ecpt_wp-pdf-document', true); ?>"><?php echo $rdocument['title']; ?></a></li> <?php endforeach; ?> </ul>

Comments

3 shown
redone975 2013-04-01T23:21:00+00:00

Anyone?

piffpaffpuff 2013-04-17T18:11:00+00:00

the related links function returns an array. every array item also includes the post_id. just make a meta-query with this post_id and the meta-name.

redone975 2013-04-17T18:28:00+00:00

Thanks for the reply… I was able to solve it by using the code similar to this: <ul> <?php $related_documents = get_related_links('documents'); ?> <?php foreach ($related_documents as $rdocument): ?> <li><a href="<?php echo get_post_meta($rdocument['id'], 'ecpt_wp-pdf-document', true); ?>"><?php echo $rdocument['title']; ?></a></li> <?php endforeach; ?> </ul>