{"id":75,"date":"2017-05-31T09:18:26","date_gmt":"2017-05-31T09:18:26","guid":{"rendered":"http:\/\/genesiswp.net\/?p=75"},"modified":"2019-07-09T12:09:56","modified_gmt":"2019-07-09T12:09:56","slug":"display-similar-posts-genesis-without-plugin","status":"publish","type":"post","link":"https:\/\/leaguewp.com\/display-similar-posts-genesis-without-plugin\/","title":{"rendered":"How to Display Similar Posts in Genesis without Plugin"},"content":{"rendered":"

When you get a new visitor to your website, they usually leave your site without exploring much. That’s why web design experts recommend adding more value to each and every page that could be the gateway to your website, and make your site navigation easy enough for your visitors to follow and explore more content. Google usually factors in session time to determine the popularity of web page which plays a key role in higher rankings.<\/p>\n

One of the best ways you could make your page relevant to new visitors and compel them to spend more time on your site is to offer them similar posts just below the main blog posts.<\/p>\n

Although there are many readily available plugins to do the job for you, you can do it by simply adding some lines of code to your theme file.<\/p>\n

In this post, I’ll show you how to add code to your Genesis site in order to display similar posts. Please, keep in mind, you must be familiar with FTP to add the code to your theme. Never edit your files directly within WordPress – one small mistake can throw error and you will site will go kaput until you fix it.<\/p>\n

If you’re ready with your FTP client, please, proceed.<\/p>\n

Essentially, there are two steps to displaying similar posts on your Genesis site.<\/p>\n

#1: Populate similar posts based on Category, using argument. (For this post, we will choose category based popular posts)<\/p>\n

#2: Display the populated posts at your desired location in your theme. (For this post, we will choose to show theme below entry content)<\/p>\n

How to Populate Similar Posts<\/h2>\n

Add the following code to you functions.php file.<\/p>\n