Support » Plugin: Related Links » Meta box

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone?

    Plugin Author piffpaffpuff

    (@chabis)

    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>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meta box’ is closed to new replies.