Related Links
[resolved] Problem displaying links of type 'custom' (2 posts)

  1. thesheep
    Posted 4 years ago #

    I have some links that are of type 'custom' (i.e. links to other, external websites). I want to give these a different icon, so I'm trying to list them separately from post and page links. In order to list them separately, I am using:

    <?php $related_links = get_related_links("custom"); ?>
    <?php foreach ($related_links as $link): ?>
    <li><a class="external" href="<?php echo $link["url"]; ?>"><?php echo $link["title"]; ?></a></li>
     <?php endforeach; ?>

    That is fine - it shows just the custom (external) links. However, when I try to get links of type 'post', it is bringing in the custom ones too:

    <?php $related_links = get_related_links("post"); ?>
                <?php foreach ($related_links as $link): ?>
                    <li><a class="internal" href="<?php echo $link["url"]; ?>"><?php echo $link["title"]; ?></a></li>
                <?php endforeach; ?>


  2. piffpaffpuff
    Plugin Author

    Posted 4 years ago #

    this is a bug, thanks for finding it. it should be fixed in version 1.5.4

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Related Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic