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
- Getting the comment number relative to all the post’s comments
- How to get the registered sidebar’s name by its id?
- Transform php code into a widget?
- 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 create comment-reply-button using element not
- How to check if comments are paginated?
- 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
- 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?
- Widgets not showing in my custom theme
- Class ‘WP_Widget’ not found
- nowplaying.include.php Will Not Display Results
- Add “last” and “first” to WordPress Comment Pagination Links
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Automatically generate Post/Page from searched Database item?
- I can’t get my custom widget area to show on my WordPress site
- How to run PHP code in Text Widget with no plugin in WP 4.4
- WordPress widget/sidebar dividers?
- How do I fetch all comments per post via WP REST API?
- Show comments menu in dashboard only if the site has comment
- Create onClick Event to Re-load a Widget
- How to put a variable in a instance in the widget
- How to output widget
- Extending the WP_Widget_Text class
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Show wp_die if url form comment not emply
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- How to make my custom widget appear within WordPress widgets? Plugin development
- get widget number from array dynamically
- Adding widgets to my plugin page instead of WordPress dashboard
- edit_comment_link is not showing for comment author
- Hide subcategories (widget)
- Limit 1 global comment per minute
- Adding a widget function into the php theme file
- How to edit widget code to add unique class name to each div?
- Genesis framework comments broken?
- If has $title in widgets
- Archives shortcode displaying above widget title
- Widgets in the loop if active
- Show latest posts in a plain HTML website custom widget [closed]
- Get post id within comments loop
- Is it bad to add html to a widget by closing and reopening the php tags?
- Hook called before text widget save
- How to list commenters and days since last commented
- How to add text to the start of all comments?
- Does anyone know all parameters of get_comments()
- Appended comments but they show up above the content instead of below
- wp_delete_comment takes two tries to delete – then deletes all comments
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Widgets not showing on custom theme
- My website is not showing Footer section
- get_comments_number() returns 0
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Restrict characters in comment section
- How to use title attributes in sidebar widget?
- display specific widget to a page
- Dynamically display font icons in widget
- Correct code to use php in text widget
- I don’t have comments.php… how do I customize my comment fields
- Stuck with sidebar registering
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- How a HTML form can trigger a PHP function?
- Add custom field on admin dashboard comments / reviews
- How to pass parameters in wordpress shortcode?
- Loading Widgets Via Child Theme
- Display the list of user’s comments + the post title + date
- How to stop hiding buttons forward / backward in pagination?
- How to create a widget with a populated dropdown?
- Comments on my custom post type
- I need to edit a widget, with no dashboard access
- How to add delete, approve, spam Links to Comments
- Real time notification on user profile after new comment
- What’s the correct offset value for order ASC?
- Widget Update problems using a for loop
- Beyond widget side menu editing, with the php page, custom template
- PHP: Why does my code work in index.php but not a widget?
- Non-static method error when trying to use class in widgets
- Widget edit and add in any page
- Slider from different widgets
- Even with PHP plugin get_posts not working in widget area
- how to run a php code in widget?
- 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
- Using existing widget code! [closed]
- Widget header unique classes
- Banner editable from backend
- Using a loop to build and update widgets
- Custom action on comment post
- Edit the Publish Widget Options
- How to get the rating value of each comment
- Trouble figuring out how to get my button to submit comment
- How to convert my comment.html to comment.php