Try this:
<?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?>
<?php while ($popular->have_posts()) : $popular->the_post(); ?>
<li><a href="https://wordpress.stackexchange.com/questions/108038/<?php the_permalink(); ?>"><?php the_title(); ?></a> has <?php comments_number( 'no responses', 'one response', '% responses' ); ?>.</li>
<?php endwhile; ?>
From the codex.
Related Posts:
- Remove Comments Metabox but still allow comments
- How can I remove the title “leave a reply” in the comment box in twentyeleven?
- change the comment time output to: X time ago instead of actual date and time
- How to get comments with mixed status using get_comments?
- How to prevent deleting of comments when deleting a post
- disable comments if array exists
- Remove “says” from comments
- Display the number of user comments
- Comments to only be seen by their author
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Show top commenters without using a plugin
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- Commenter should see only his comments in wordpress
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- wp-comment author- url +, email filter hook
- check if author has published posts in custom post type, then send mail
- Where to add the permalink in this function?
- Incorrect redirect after commenting
- comments_popup_link without echo?
- Wp admin – Set default value to 999 in comments
- What is the Difference in bones_comments() and comments.php
- Function to replace comment’s accented characters before posting
- WordPress comment_form() does not display actual comments
- WordPress comment processing . Default unapproved comments detection before posting
- How do I change where “You must be logged in to comment” directs users?
- How do I make the comment disappear after deleting from the database?
- Remove nofollow from internal comment links via functions.php
- How can I automatically delete comments that contain a URL?
- Warning and fatal error
- Comment function for page
- How to identify author in wordpress comments?
- How can I return the result of my custom function?
- Newest comments first not working
- get_comments not working properly after WordPress v4.4 update
- Getting error while trying to use custom comment function
- List Most Read Posts from last 7 days (with custom post type and other meta queries)
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Custom Nested WordPress Comments with avatar
- Undo a function that is not (seemingly) hooked to an action?
- Comment Function
- WP Custom Comment Callback Not Responding
- How to remove “login to reply” from individual comments [duplicate]
- Getting full code of wp_list_comments instead of replacing it
- Comment turned Invisible
- User’s Comments Number: Storing it in a meta field for different uses
- Add functionality to block comment authors in the Comment edit pag
- Redeclare a function in a child theme
- Comment Count for each Comment Author
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- Display user’s total comment count outside The Loop
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- How to add CSS style sheet dynamically in wordpress
- How to update BuddyPress xprofile fields programmatically? [closed]
- Replace Archive Widget Link Text
- A snippet after every image
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- How to include local menu based on page id?
- How to add custom fields to my custom registration form
- How can I change the do_action function in footer (copyright area)
- How to display post content instead of excerpt
- Override a theme function in a child theme?
- changing behaviour of get_search_form
- Include default functions and methods
- Functions in custom theme
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- paginate_links() don’t properly work in search.php?
- Does code run faster in functions.php than in different theme templates?
- get_post_meta() problem again
- Update users custom profile fields
- Add back in child theme what the parent theme removed with remove_action
- replace text in Sort Box
- login_headertitle is deprecated since version 5.2.0
- Where is this JQuery coming from?
- What is the better for call files: bloginfo() or echo esc_url()?
- WordPress website keeps loading the maintenance page
- Setting Permalinks in wp_config or functions file?
- loginout function customization
- Dashboard blocker on network multisite for specific user roles
- How to place a div inside a function that creates a div
- Echo post title in post
- dynamic enquiry form [closed]
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to change images url in function.php?
- Probleme shortcode with list author
- Stylesheet does not load despite functions.php
- How to show only specific category post by user role without plugin and restrict all other cats
- Shortcode to output category description by passing ID
- Unable to declare AOS library in functions
- Removing sanitize_title_with_dashes Function with The Real Title
- Printing medium sized image
- Adding a jQuery rotator function
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Can’t change excerpt length and more tag
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- Comments are not working on Custom Post Type
- Changed functions.php file and now site is blank [closed]
- How to overwrite image if it already exists – WordPress, Gravity form