Title: help in inserting related post code from guide
Last modified: August 30, 2016

---

# help in inserting related post code from guide

 *  Anonymous User
 * (@anonymized-10133093)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/help-in-inserting-related-post-code-from-guide/)
 * Hello. I am trying to use this guide to create a related post option at the end
   of each post:
 * [http://www.wpbeginner.com/wp-themes/how-to-add-related-posts-with-a-thumbnail-without-using-plugins/](http://www.wpbeginner.com/wp-themes/how-to-add-related-posts-with-a-thumbnail-without-using-plugins/)
 * I am a coding newb, and already I am stuck, there is no single.php in this theme!
 * I have made a child theme folder ‘customizr-child’ and made style.css with this
   in it:
 * /*
    Theme Name: Customizr Child Theme URI: [http://www.learndigitalaudio.com/](http://www.learndigitalaudio.com/)
   Description: Mods Author: David Author URI: [http://www.learndigitalaudio.com/](http://www.learndigitalaudio.com/)
   Template: customizr Version: 1.0.0 */
 * now i am stuck as to where to insert the code and what what file i should create
   in my new child theme.
 * can anyone tell me what file i should be copying across to my child theme directory
   and EXACTLY where i should paste the code?
 * MANY THANKS!

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

 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/help-in-inserting-related-post-code-from-guide/#post-6273957)
 * You need a functions.php in your child-theme,
    (a functions.php is just a file
   named that way in your child-theme folder which just starts with `<?php`)
 *     ```
       add_filter('tc_post_content', 'related_posts');
       function related_posts( $_content ){
         echo $_content;
       // your code here
       }
       ```
   
 * Hope this helps.
 * Anyway there are a lot of powerful plugins for related posts, if you’re not a
   developer you might want to use them.
 *  Thread Starter Anonymous User
 * (@anonymized-10133093)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/help-in-inserting-related-post-code-from-guide/#post-6274043)
 * thanks for your input, but i can’t make it work. if you felt like making me a
   functions.php file with code from the wpbeginner example that worked and pasting
   it here i would be overjoyed, but of course that is a bit much to ask as I am
   not paying you!
 * All the related posts plugins i find are a bloat nightmare, all i want it to 
   do is exactly what this bit of code does, display all the posts with the same
   tag and a thumbnail next to it. i used to use Microkid’s Related Posts, but it
   is massively out of date and will cause problems sooner rather than later i am
   sure.

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

The topic ‘help in inserting related post code from guide’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/help-in-inserting-related-post-code-from-guide/#post-6274043)
 * Status: not resolved