• Hi there,

    I have a piece of code below tht displays latest comments. However, when i click on the link it takes me to ‘site.com/blog/archives/1’ for all the links even though they are from different sources.

    Any ideas where im going wrong?

    <?php
    $comments = get_comments('status=approve&number=5');
      foreach($comments as $comm) :?>
        <a href="<?php the_permalink(); ?>" title=xx"><?php echo($comm->comment_content);?></a>
      <?php endforeach;?>
    </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Latest comments link to the article it came from’ is closed to new replies.