Customizing Related Posts of Freshlife WordPress Theme


Many Tech blogs and professional blogger’s use very famous Freshlife WordPress theme. It is a very old theme of Theme Junkie and got updated recently. I thought I would write some posts about how to customize the theme. Here is my first customization of the theme.

Replacing Related Posts of the theme with YARP plugin

By default Freshlife WordPress theme has Related Posts function which uses tags. But for me YARP plugin is the best related posts plugin by far. I am using the same plugin in my theme. I will explain you how to replace Freshlife’s function with YARP plugin function.

  1. I would suggest you to backup the theme before making any changes.
  2. Now goto Appearance → Editor to open theme editor.
  3. From the right side panel, find and open single.php.

Note: You need unselect option: Settings → Related Posts (YARPP)->Automatically display related posts?

Find below code:

<div class="entry-related-posts">
                    <?php echo tj_related_posts(); ?>
                </div> <!-- end .entry-related-posts -->

Replace it with the below code:

<div class="entry-related-posts">
			<?php echo related_posts(); ?>
		</div> <!-- end .entry-related-posts -->

Now your theme will use YARP function. If you run into any issues, feel free comment below.

Related Articles You Are Probably Interested In :

Incoming search terms:

  • how to customized freshlife theme
  • related posts plugin

Stay Updated

Subscribe to our e-mail newsletter to receive updates.

, ,

No comments yet.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.