Displaying your most commented posts in the sidebar is a simple yet powerful way to showcase popular content, encourage discussion, increase pageviews, and keep visitors on your site longer. with user engagement signals still playing a role in Google’s ranking algorithm, highlighting high-comment articles helps reduce bounce rates, signals active community content, and improves overall site authority. At Cope Business, we often add dynamic “most commented” widgets for clients during our technical SEO audit services to boost on-page engagement and help valuable older posts stay visible.
This beginner-friendly guide shows you three easy methods to display most commented posts in your WordPress sidebar — using plugins (easiest), widgets, and custom code (lightweight).
Why Show Most Commented Posts in the Sidebar?
- Social Proof — High comment count shows content is popular and worth reading
- Increases Pageviews — Readers explore more of your best-performing articles
- Improves Engagement — Encourages new comments on older posts
- SEO Benefits — Longer sessions + more internal clicks help rankings
- Highlights Evergreen Content — Revives older posts that still generate discussion
Perfect for blogs, news sites, forums, or any site with active comments.
Method 1: Using a Plugin (Easiest & Most Flexible)
Plugins give you beautiful layouts, thumbnails, and full control.
Recommended Plugin: WordPress Popular Posts (Free & Pro)
This is the most popular and reliable plugin for displaying most commented posts.
Step-by-Step Setup
- Install and activate WordPress Popular Posts from Plugins > Add New.
- Go to Appearance > Widgets.
- Drag WordPress Popular Posts to your desired sidebar (or footer).
- In widget settings:
- Title: “Most Commented Posts” or “Hot Discussions”
- Time Range: All Time (for lifetime most commented)
- Order by: Comments
- Posts per page: 5–8
- Show: Thumbnail (recommended), post title, comment count
- Post Type: Posts (or include pages if needed)
- Style: Choose layout (list, grid), thumbnail size, custom CSS class if needed.
- Save → Widget appears in sidebar.
- Test: Scroll to sidebar — most commented posts show with comment counts.
Pro Version (~$39/year): Adds custom time ranges, advanced filters, trending topics, REST API.
Pros: Accurate comment counting, thumbnails, multiple time ranges, shortcode + widget support. Cons: Free version has basic styling (customize with CSS).
Alternative Plugin: Recent Posts Widget Extended (free) — Set “orderby=comment_count” in advanced settings.
Method 2: Using Custom Code with WP_Query (Lightweight – No Plugin)
For full control without extra plugins.
Steps
- Install WPCode (free) from Plugins > Add New — safest way to add code.
- Go to Code Snippets > Add Snippet → Create new snippet titled “Most Commented Posts Widget”.
- Paste this code:
PHPfunction cope_most_commented_widget() { $args = array( 'post_type' => 'post', 'posts_per_page' => 5, 'orderby' => 'comment_count', 'order' => 'DESC', 'post_status' => 'publish' ); $query = new WP_Query($args); if (!$query->have_posts()) { echo '<p>No commented posts yet.</p>'; return; } echo '<ul class="most-commented-posts">'; while ($query->have_posts()) { $query->the_post(); echo '<li>'; echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; echo ' <span>(' . get_comments_number() . ' comments)</span>'; echo '</li>'; } echo '</ul>'; wp_reset_postdata(); } // Register as widget function cope_register_most_commented_widget() { register_sidebar(array( 'name' => 'Most Commented Posts', 'id' => 'most-commented-sidebar', 'before_widget' => '<div class="widget most-commented">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', )); } add_action('widgets_init', 'cope_register_most_commented_widget'); // Display in custom widget area add_action('wp_footer', function() { if (is_active_sidebar('most-commented-sidebar')) { echo '<div class="widget-area most-commented-sidebar">'; dynamic_sidebar('most-commented-sidebar'); echo '</div>'; } });
- Save and activate the snippet.
- Go to Appearance > Widgets → Add a Text or Custom HTML widget to your sidebar.
- Paste:text
<?php cope_most_commented_widget(); ?> - Save → Most commented posts appear in sidebar.
Pros: Zero extra plugins, fully customizable. Cons: Basic styling (add CSS to make it beautiful).
Method 3: Using Widgets with Plugins (Quick Visual Method)
- Recent Posts Widget Extended (free): Set “orderby=comment_count” in advanced settings.
- Display Posts shortcode:
[display-posts orderby="comment_count" order="DESC" posts_per_page="5"]
Add to sidebar via Text widget or shortcode block.
Best Practices for Most Commented Posts
- Limit Number — 5–8 posts to avoid clutter
- Show Thumbnails — Increases click-through rate
- Add Comment Count — Builds social proof (“12 comments”)
- Mobile-Friendly — Ensure responsive layout
- Performance — Use caching; lazy-load thumbnails
- SEO — Use descriptive headings; add internal links
Highlighting popular content keeps your site feeling active and valuable.
Final Thoughts
Displaying most commented posts in your WordPress sidebar is a simple yet powerful way to showcase engaging content, increase pageviews, and signal to Google that your site has active discussions. Use WordPress Popular Posts for beautiful, customizable lists — or lightweight shortcodes if you want no extra plugins.
Social proof and engagement are still key ranking factors — use them to your advantage.
Need help adding dynamic content sections, optimizing your blog for SEO, or improving overall site performance? Contact Cope Business for a free technical SEO consultation — we’ll review your site and implement tailored improvements to keep your content visible and valuable.




