Try this
<?php echo get_comments_number( $post['ID'] ); ?>
Related Posts:
- How to include checkbox in widget backend form?
- Limit the number of inactive widgets
- How display widget by id
- Display user’s total comment count outside The Loop
- Create Image Uploader for Widget
- Facebook Comment Count
- Getting the comment number relative to all the post’s comments
- How to get the registered sidebar’s name by its id?
- How to output a permanently delete comment link?
- Displaying a variable stored in functions.php inside widget
- Check if widget has content
- Transform php code into a widget?
- count number of user comments with a specific comment meta value
- Change comments form title on a page by page basis
- How do I create a drop down menu in a widget?
- WordPress widget in custom theme
- How to allow PHP In WordPress text widget
- How do I make wordpress comment fields required?
- How do I create comment-reply-button using element not
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- display most popular tags in two columns
- List authors with posts in a category
- How to check if comments are paginated?
- How to add Shortcode (font awesome) in widget title?
- Anything I can add to functions.php to make text widgets accept PHP?
- Show Specific Footer Widget for Specific Pages
- WordPress menu deletes when trying to add a hook
- dynamic sidebar not showing anything
- PHP contact form returns warning in text widget [closed]
- How can I add a specific, custom widget to my theme’s header.php?
- Get widget settings function?
- Comments on my custom post type
- Fetch commens from a specific post
- Add widget area from visual editor
- Closing Comments conditionally in comments.php
- How to make a “page-option” in WordPress
- Priority call methods – PHPMailer->addAddress(NULL)
- I need to edit a widget, with no dashboard access
- How to add delete, approve, spam Links to Comments
- is_user_logged_in() not working in homepage
- Dynamic_sidebar load in string makeup
- missing admin bar and widget in a template
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- Featured Products not showing up in “Featured” area of homepage
- (Who to follow) Twitter widget
- Real time notification on user profile after new comment
- What’s the correct offset value for order ASC?
- My own theme’s custom widget areas are not working
- How can I output the slug of a comment author?
- Widget Logic – display on page and all child
- How can I enqueue comment-reply script only on certain page?
- Add disclaimer before certain posts and pages
- Widget Update problems using a for loop
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Beyond widget side menu editing, with the php page, custom template
- How to list categories by page id in wordpress
- PHP: Why does my code work in index.php but not a widget?
- Non-static method error when trying to use class in widgets
- Are WordPress widgets cached?
- Widget edit and add in any page
- widget: input the px value from user and use it as inline style in widget function
- Slider from different widgets
- Even with PHP plugin get_posts not working in widget area
- Update title of every instance of widget using text field
- how to run a php code in widget?
- Are widget arguments always set inside My_Widget::widget()?
- Getting most popular posts based on Facebook comments count
- WP_Widget dynamic field array with external AJAX
- A Space being added to url generated by custom plugin
- WordPress – registering sidebar and adding a button directly after .textwidget
- List sibling pages widget, exclude current page
- Name Input from widget displays Sidebar name instead of saved data
- Using existing widget code! [closed]
- How does add_action ‘comment_post’ work?
- Widget header unique classes
- Banner editable from backend
- My custom widget won’t stay in the widget area after I refresh the widget page
- key( $GLOBALS[‘wp_registered_sidebars’] ) is always showing the same value
- How to change links in the 3 main categories, on widget category, to a javascript function call
- Using a loop to build and update widgets
- Custom action on comment post
- PHP Widget and do_shortcode
- WordPress most commented posts of last X days
- Edit the Publish Widget Options
- How to define template directory in this widget code
- How do I call comments_template(); from a plugin file?
- How to get the rating value of each comment
- WP Debug enabled Undefined index error in a widget
- Trouble figuring out how to get my button to submit comment
- How to convert my comment.html to comment.php
- how to check elementor is widget is active or loaded
- Guests comment form – prevent duplicate email addresses
- How to edit a widget code?
- Permissions error when I use my plugin to delete comments in the front-end
- Pre_get_comments and orderby comment_karma
- WordPress PHP8.2 Critical Error in class-wp-widget.php
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- Remove links to the comments section
- Trying to insert widget code into theme function
- Removing website URL in comments causes misalignment of submit button and tickbox