Title: Manual Code Not Working
Last modified: August 21, 2016

---

# Manual Code Not Working

 *  Resolved [PauloCot](https://wordpress.org/support/users/paulocot/)
 * (@paulocot)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/manual-code-not-working/)
 * I am trying to get related posts on all pages but UNDER the comments. Simply 
   clicking the include in page doesn’t work because this puts the nrelate above
   the comments. When I insert the manual code <?php if (function_exists(‘nrelate_related’))
   nrelate_related(); ?> in either comments.php or page.php it doesn’t show on the
   page.
 * Anyone know what could be the issue?
 * [http://wordpress.org/plugins/nrelate-related-content/](http://wordpress.org/plugins/nrelate-related-content/)

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

 *  [katrina@nrelate](https://wordpress.org/support/users/katrinanrelate/)
 * (@katrinanrelate)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/manual-code-not-working/#post-4021325)
 * [@paulocot](https://wordpress.org/support/users/paulocot/) — You can control 
   exactly where you’d like the plugin to show on your page by following the instructions
   for “Manually Inserting PHP function into your FUNCTIONS.PHP FILE:” here – [http://nrelate.com/theblog/2011/12/22/manually-adding-nrelate-code-to-your-wordpress-template/](http://nrelate.com/theblog/2011/12/22/manually-adding-nrelate-code-to-your-wordpress-template/)
 * Hope this helps! Let us know if you need more assistance with this.
 * – Katrina @ nRelate
 *  Thread Starter [PauloCot](https://wordpress.org/support/users/paulocot/)
 * (@paulocot)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/manual-code-not-working/#post-4021558)
 * Thank you, I think the issue was the page field wasn’t ticked when the code was
   manually inserted. Just so you know I have both page and post ticked, with neither
   post at top or bottom ticked but the page.php doesn’t need to the manual code
   whereas the post page (single.php) does!
 *  [katrina@nrelate](https://wordpress.org/support/users/katrinanrelate/)
 * (@katrinanrelate)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/manual-code-not-working/#post-4021571)
 * [@paulocot](https://wordpress.org/support/users/paulocot/) — Great, glad to hear
   that you were able to get manual placement to work for you.
 * Thanks for using nRelate!

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

The topic ‘Manual Code Not Working’ is closed to new replies.

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

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [katrina@nrelate](https://wordpress.org/support/users/katrinanrelate/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/manual-code-not-working/#post-4021571)
 * Status: resolved