WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Manually Inserting Related posts.. Help! (6 posts)

  1. angelforever123
    Member
    Posted 3 years ago #

    Hi..
    I wanted some help.. i wanted to knw how to manually display related posts .. i inserted this following code to my single.php But it was not successfull.. when i tried, the pages that use single.php dint load..

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php related_posts(); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    Please tell me where i have gone wrong.. thanks..

  2. angelforever123
    Member
    Posted 3 years ago #

    i am waiting :(

  3. angelforever123
    Member
    Posted 3 years ago #

    well.. i figured out the mistake :)

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    What was the mistake? :)

  5. angelforever123
    Member
    Posted 2 years ago #

    I was stupid. I dint realize there was already a open have post loop..
    I opened the have post loop inside the have post loop.. :P

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, okay. :) Glad it's resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic