WordPress.org

Ready to get started?Download WordPress

Forums

Show on Full Text but not on Index (2 posts)

  1. phoenixd
    Member
    Posted 9 years ago #

    I am looking to get Related posts to only show when someone is reading a single article and not on my index page, how would I do that?

    I have the related posts plugin and am looking to find out where I put this code:
    <?php related_posts(5, 10, '

  2. ', '
  3. ', '', '', false, false); ?>

  • phoenixd
    Member
    Posted 9 years ago #

    Nevermind, I got it.

    <?php if (is_single()){
    echo "<b>Related Posts</b>
    ";
    related_posts(5, 10, '', '
    ', '', '', false, false);
    } ?>

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags