Title: Manually Inserting Related posts.. Help!
Last modified: August 20, 2016

---

# Manually Inserting Related posts.. Help!

 *  Resolved [angelforever123](https://wordpress.org/support/users/angelforever123/)
 * (@angelforever123)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/)
 * 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..

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [angelforever123](https://wordpress.org/support/users/angelforever123/)
 * (@angelforever123)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267351)
 * i am waiting 🙁
 *  Thread Starter [angelforever123](https://wordpress.org/support/users/angelforever123/)
 * (@angelforever123)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267359)
 * well.. i figured out the mistake 🙂
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267597)
 * What was the mistake? 🙂
 *  Thread Starter [angelforever123](https://wordpress.org/support/users/angelforever123/)
 * (@angelforever123)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267599)
 * 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.. 😛
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267600)
 * Ah, okay. 🙂 Glad it’s resolved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Manually Inserting Related posts.. Help!’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/manually-inserting-related-posts-help/#post-2267600)
 * Status: resolved