WordPress.org

Support

Support » How-To and Troubleshooting » Show on Full Text but not on Index

Show on Full Text but not on Index

  • 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, ‘

  • ‘, ‘
  • ‘, ”, ”, false, false); ?>

Viewing 1 replies (of 1 total)
  • Nevermind, I got it.

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

Viewing 1 replies (of 1 total)
  • The topic ‘Show on Full Text but not on Index’ is closed to new replies.
Skip to toolbar