Would you like to view the most commented posts in WordPress?

Highlighting your most commented articles helps your visitors find your best content, increase pageviews, and boost website engagement.

In this article, we'll show you how to view the most commented posts in WordPress step by step.

Why display the most commented articles in WordPress?

Your most commented articles have very high levels of user engagement. By displaying your popular posts, you encourage new readers to join the discussion and spend more time on your WordPress site, while also strengthening your social proof.

When your visitors stay on your website longer, it gives you a chance to convince them to read another article, to join your broadcast list or make a purchase.

Plus, when new visitors leave a comment, they're part of the community. It can help you build the trust of your readers in the long run.

That being said, let's see how to simply display your most commented posts in WordPress using 2 methods.

How to display the most commented articles with a WordPress plugin

There are many popular wordpress plugins which you can use to display your popular posts, but the easiest to use is MonsterInsights.

It is the best WordPress analytics solution used by over 3 million websites. With this plugin, you can easily display your most commented articles anywhere on your website.

The first thing you need to do is install, activate and configure the plugin. For more details, see our beginner's guide on how to install Google Analytics in WordPress.

Please note: there exists a free version from MonsterInsights, but we'll be using the pro version for this tutorial because it offers the popular articles feature.

After activation, go to Insights »Popular Posts, then click on the menu item " Popular Posts Widget ».

How to display the most commented posts in WordPress

On this screen, you will control the appearance of your most commented articles.

Simply select the “theme” you want to use for your top commented posts. The theme works the same as your WordPress theme and will control the overall design of the top commented posts widget.

There are a ton of other customization options on this screen as well.

For example, in the meta-zone " Theme preview ", You can display your most commented articles in a large format" Wide " under your content or Narrow " Narrow ” to the right of your content.

How to display the most commented posts in WordPressAfter that you have more options to customize the design.

For example, you can change the size and color of the title, icon, and background.

MonsterInsights will automatically save any changes you make to your most commented article display settings.

Once you're done customizing the look of your commented posts, it's time to show them off.

In the meta-zone 'Sort By', simply select the option 'Comments'.

How to display the most commented posts in WordPress

MonsterInsights will automatically display your most commented articles.

You have a few different options for adding your popular posts to WordPress. You can choose between manual or automatic placement.

If you choose the placement " Automatic », The plugin will add your most commented WordPress posts directly after the last paragraph of your blog posts.

The other option is to manually display your most commented articles. If you select the "Manual" option, you can add the popular articles widget with a Gutenberg block or shortcode.

To do this, open a page or article where you want to display your most commented articles.

Then click on the '+'and select the block'Popular Posts'.

This will automatically add your most commented articles to your page.

Make sure you click on " Update profile " or " Publish To view your changes online. Now when your users visit the page, they will see your most commented articles displayed.

How to display the most commented posts in your WordPress sidebar

If you want to display your most commented posts in your WordPress sidebar, go to Appearance »Widgets.

After that, look for the widget " Popular Posts - MonsterInsights In your sidebar and click on the result.


You will be taken to the following screen:

Then, you can give a title to your widget, choose the number of articles to display, select the theme, change the color, etc ...

Once you are done making changes, click " Update profileand your popular items will be displayed on your WordPress blog.

How to display the most commented articles without a WordPress plugin

This method involves adding code to your WordPress files. However, there are a few drawbacks to using this method. First of all, it involves adding code to WordPress, so it's not very beginner friendly.

Second, the code is not as optimized for performance as the MonterInsights plugin, so it will increase the server load and may slow down your website.

That being said, let's take a look at how you can view the most commented posts in WordPress without a plugin.

You need to add the following code to your file functions.php,

function most_commented_posts () {// start output buffering ob_start (); ?>  have_posts ()): $ query-> the_post (); ?> 

The above code will run a database query and retrieve 10 posts sorted by the highest number of comments. Then it uses output buffering to create a shortcode that you can use to display the articles.

The last line of code creates a shortcode that you can use in your posts, pages, and widget areas.

To display your popular posts all you need to do is add the following shortcode to your WordPress website.

[most_commented]

If you want to add thumbnails next to the titles of your articles, add the following line of code just after the tag in the code above.


This code will set custom size of item thumbnail images. You can adjust the size to meet your needs. Once you've done that, you can customize how your most commented posts will display. To do this, you can modify the classes and CSS in the stylesheet of your WordPress theme.

 .most-commented.comment-count

For more details, see our guide on How to easily add custom CSS to your WordPress website. You can use the following CSS to get started:

.most-commented li {border-bottom: 1px solid #eee; padding-bottom: 3px; } .most-commented li: after {clear: both; } .most-commented img {padding: 3px; margin: 3px; float: left; } .comment_count a, .comment_count a: active, .comment_count a: visited, .comment_count a: hover {color: #FFF; }

Discover also some premium WordPress plugins

You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.

We therefore offer here some WordPress plugins premium that will help you do that.

1. WooCommerce Request a Quote

The premium WooCommerce Request a Quote plugin allows your visitors / customers to add products to a wishlist and submit a simple 'request for quote' to the website owner. This gives an opportunity for the website owner to give special rates based on the quantity of the order.

WooCommerce Request a Quote

At the same time, it will allow customers to negotiate better prices. This plugin is ideal for rental stores, which provide personalized services, or for anyone who wishes to benefit from the option of receiving a personalized quote.

See also our article on How to customize the form of comments on WordPress

Customers will be able to add the products they are interested in to their wishlists, and when they are ready, they will just have to click a button and their list will be sent to you with their names, their e-mails and an optional short message.

Download | Demo | Web hosting

2. WooAffiliates

Of all the WordPress plugins dedicated to the affiliate of this list, WooAffiliates is the most powerful plugin in this niche. 

WooAffiliates WordPress affiliate plugins earn money blog website

It allows you to make affiliation, integrating the programs of major online stores such as Amazon, eBay, and Envato Market.

See also How to fix the login error with the WordPress database

Its features will include: easy product import, advanced product search, bulk product import, geographic targeting, responsive customer support, and more.

Download | Demo | Web hosting

3. WooCommerce Booking & Reservation Plugin

The WooCommerce Premium Booking & Reservation plugin allows your customers to book your services directly on the internet. To do this, simply integrate it into your websitee-Commerce and to add your service as a reserved product with price and availability, to allow customers to make their reservation.

WooCommerce Booking Booking

With the help of a booking calendarCustomers will be able to quickly select the days they wish to book. In short it is a plugin that gives you the opportunity to create services that can be reserved and assign them to products to optimize the income of your website.

Why should you use a content blocker on WordPress? Discover by clicking on this link.

As features you will find among others: the configuration of prices for certain days, the specification of the period of validity for cancellation, support for dynamic pricing, 100% responsive layout, multiple location support, professional customer support and more

Download | Demo | Web hosting

Recommended Resources

Find out about other recommended resources to help you build and manage your website.

Conclusion

Here is ! That's it for this tutorial. We hope this article helps you view the most commented posts in WordPress. Do not hesitate to share with your friends on your favorite social networks

However, you can also consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on WordPress blog creation.

If you have suggestions or remarks, leave them in our section Comments.

...