Title: Custom PHP Placement &amp; Removal
Last modified: August 24, 2016

---

# Custom PHP Placement & Removal

 *  [angierosie](https://wordpress.org/support/users/angierosie/)
 * (@angierosie)
 * [11 years ago](https://wordpress.org/support/topic/custom-php-placement-removal/)
 * I placed the php snippit <?php wp_related_posts()?> onto my single post template
   where I want the articles to display, but now I have it and the auto-populated
   related posts on my posts. How can I remove the auto-populated posts and just
   have it show where I placed the code?
 * Thanks!
 * [https://wordpress.org/plugins/wordpress-23-related-posts-plugin/](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/)

Viewing 1 replies (of 1 total)

 *  [PetraP](https://wordpress.org/support/users/petrap/)
 * (@petrap)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/custom-php-placement-removal/#post-6122085)
 * Hey,
 * thanks for reaching out and sorry for this late reply!
    You can remove those 
   auto-populated posts in the plugin settings by unticking the box next to “Auto
   Insert Related Posts (or add<?php wp_related_posts()?> to your single post template)“.
 * Don’t forget to save the changes.
    Once again – my apologies! Petra

Viewing 1 replies (of 1 total)

The topic ‘Custom PHP Placement & Removal’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-23-related-posts-plugin_7b9a7c.
   svg)
 * [WordPress Related Posts](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [PetraP](https://wordpress.org/support/users/petrap/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/custom-php-placement-removal/#post-6122085)
 * Status: not resolved