WordPress is one of the most widely adopted content management systems (CMS). One of the major advantages of WordPress is its flexibility, as the any WordPress user can customize the look and features of any WordPress installation to fit his/her needs and taste. What is even more important is that these modifications could be made either without any prior knowledge to programming using plugins or using very simple codes that the user can just copy and paste.
There are many ways by which the webmaster can enhance the website to make its visitors be more engaged and thus spend more time on it, one of these ways is to show the most commented posts as that would of course increase the engagement level. Of course increasing the engagement level increases the conversion rate (revenue) of the website.
This post is a step by step tutorial on how to get the most commented posts with thumbnail in WordPress without a plugin.
Step 1: Go to your website and log into your WordPress dashboard (www.example.com/wp-admin) and enter your credentials, then enter the dashboard.
Step 2: In your dashboard enter your Appearance menu.
Step 3: In the Appearance menu, go to the “Editor” tab.
Step 4: Open the sidebar.php or footer.php (wherever you want it to appear) file at the right hand side of the screen and copy and paste the following code in it:
Close and save sidebar.php or footer.php (whichever you’ve used).
Congratulations, now you’ve successfully presented most commented posts with thumbnail in WordPress without a plugin.