You could probably just buffer the output from comments_popup_link in a separate function.
function get_comments_popup_link( $zero = false, $one = false, $more = false, $css_class="", $none = false ) {
ob_start();
comments_popup_link( $zero, $one, $more, $css_class, $none );
return ob_get_clean();
}
Related Posts:
- Adding character count and limit in comments, modifying labels and fields – jetpack
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- How to disable or hide WordPress.com as a social media login option for Jetpack Comments [closed]
- Adding comments section to website integrated WordPress instance
- JetPack comment threads are displaying above comment box? [closed]
- How to use a custom comments template
- Comment visibility
- Get comments for more than one post
- Add placeholder attribute to comment form fields
- “Categories” for comments?
- Allow anonymous comments, but prevent spam [closed]
- Where to remove from comment’s feed?
- Why are default comments deprecated?
- Allow guests comments on single post
- Delete all user comments
- Why do I get email notifications about comments that WordPress has already determined are spam?
- Delayed commenting
- “Leave a comment” link even when you can’t
- An action hook where a comment meta is updated
- Display number of comment replies
- User can post only one comment per day on one page
- Last comment page first with full number of comments?
- Only subscriber role user can comment not other
- customize comment form
- How to check if commenter is the_author?
- Relaxing unescaped HTML filtering inside tags?
- How to get the result of comments_number() as a string instead of printing it out?
- Should I still worry about paginated comments with the latest wordpress versions?
- WordPress unresponsive after calling wp_update_comment()
- How to dont allow registered users to comment without being logged in?
- edit comments capability for authors
- Publish a message on facebook after having posted a comment
- Users with custom roles can’t read each other’s comments
- Why is_wp_error() is not returning false even there’s no defined error
- wp_insert_comment and security
- How can someone submit a comment when my site has no comment field?
- Separete trackbacks/pings and numbered comments
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- Show comments in a popup
- Is WordPress vulnerable to “comment posting forgery”?
- How to display html in only the first level of WP comments?
- Set noindex page-comment from Pages 2, 3 and More?
- How can I convert anonymous commenters into registered users?
- How can I edit comment notification email content?
- your comment awaiting moderation message sometimes not appearing
- Limit comments per user per post
- Filter In Reply comments from WordPress Admin Panel
- WordPress ‘comment counts’ got messed up, because of a plugin – DISQUS
- blank page after submitting a comment
- Remove post navigation links
- How to automatically evaluate comment content without user seeing the delay?
- Notify post author for a new comment on his post?
- cancel reply link results in 404 error
- css hide all the comment reply links except the lowest nested comments
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- Admin can enter JavaScript – potential security risk?
- Safe to remove this: when using a 3rd Party Comment App? [closed]
- Commentlist: bypostauthor problem with children list
- Comments does not work?
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- Review count per product
- Moving post’s content to post’s comments section
- comment_notes_before not working
- why can’t I retrieve the comment ID?
- How to create post comment from different domain
- Display custom text when comments are closed
- Returning error upon comment being flagged as spam
- is it possible to have the full code instead in the comments.php page
- I need to disable Disqus comments pre-approval, but i can’t find where
- How do i remove approved spam comments by date?
- Page comes up blank using w3 total cache [closed]
- Comment Table Size Results in Slow Page Loads and 500 Errors
- Insert ads between comments
- get_query_var(‘paged’) for WP_Comment_Query always return 1 when using paginate_comments_links()
- How to only show current user’s comments and comments on current user’s posts in wp admin
- How to show username in reply to comment?
- Custom sort comments with select form
- Display date and time into post edit comments section
- Disallowed Tag Present in AMP WordPress ()
- Limit Comment Line Count – Add Read More Button
- Commenter username copies author username
- Fire Social Annex Code on Comment Approval
- Displaying comment rating stars in carousel
- Enable comments option
- Change Comment Text [duplicate]
- Comments closed but enabled on edit screen
- Let user delete comment on front end only
- jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default
- Comment form – different title if no comment yet
- Auto approve all comments (editor)
- add field comment [duplicate]
- Let users comment on categories in WordPress
- Loop not displaying comments_popup_link
- Display of comment_date within get_comments?
- How to batch convert comments to posts?
- Customize comment notification e-mails with HTML
- prevent duplicate comments using wp_insert_comment
- I need help about wordpress of members section