the comments_popup_link()
function will only work when used within the_loop; a ‘foreach’ loop using post Ids is not the same.
you could try to build your own link, based on this function: get_comments_number( $id )
.
Related Posts:
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- How to load and show comments with AJAX instead of pagination?
- Recent comments from my blogs only
- How to sort posts by the average of comment meta values
- Get post id within comments loop
- How / where is the wp_query object created for RSS feeds?
- Return count for characters in the comment and perform action based on the length
- Getting Post Permalink Outside of Loop Not Working
- How to create a seperate commenting system?
- How can I add extra word in permalink when someone click download button?
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- How to implement a rating and review system for WordPress custom posts?
- Notification if Comment Author Field is left empty. E.g. change input border colour
- Increase offset while looping
- Assign author to comment from post edit page
- The “\” is missing when comments is updated
- Blog posts repeat
- Ajax load more button for comments wordpress
- How to add condition in wordpress loop? [closed]
- Reply By Email to comment notifications
- How to get all comment authors of a single post?
- Woocommerce : Can’t get product info in loop
- Get return value of wp_insert_comment (comment ID)
- Change how many approved comments must user have
- Allow the comment author to delete their own comments
- How to set variable, pass it to a partial file and remove it after?
- how to refresh div on template part?
- Only admin can see comments on post or page
- How to retain comment text on comment form after login/registration?
- Modify WordPress Comment From For AMP Html
- cancel reply link results in 404 error
- Get all posts including sticky ones with get_posts(),setup_postdata(), and foreach loop?
- How to print out menu names in the foreach loop?
- edit_comment_link is not showing for comment author
- warnCommentChanges always being triggered on update
- All users/comments suspected as bot? [closed]
- Adding character count and limit in comments, modifying labels and fields – jetpack
- Limit 1 global comment per minute
- Counter in loop in foreach
- Alert Bar section within WP loop is displaying even though there are no posts
- Create Page To Count Comments For Each Post In WordPress Site
- remove post that has no content
- Check if comment was successfully submited
- Get Post ID within wp_set_comment_status hook
- Display category name only once inside loop
- List comments received by every posts of an specific author
- comment_reply_link not work with me
- How to implement comments on specific fields in wordpress?
- After Submitting Comment Form Shows an Empy Page in WordPress
- Unique User for all visitor, but possibility to comment with unique name
- comments sorting incorrectly across multiple pages
- comments_array filter doesn’t work in some themes
- css hide all the comment reply links except the lowest nested comments
- Commenting out unwated CSS/scripts in HTML with PHP
- Count comment threads, not total comments in a post
- Can’t find infinite loop cause
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Redirect when click on “response” in comment section
- Using defer or async JavaScript attributes prevents pingbacks and trackbacks from being sent
- Why do I have to manually approve comments from one of my users who already has an approved comment?
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Troubleshooting Emoji in Comments
- Prioritizing the wordpress comments
- Stuck in the query loop
- delete duplicate comments
- Placed on + only date (not time)
- Show comments of a user post only when they are login
- how get comments only on post of current logged in user?
- Loading Comments From a Class?
- wp-comments-post.php file returns a blank page
- How to get comment id in callback function?
- Which filter/hook to use for styling comments?
- php function to display commenter username or login
- How should I get the original comment while processing the reply
- Change id=”respond” to the comments container
- comments in Admin
- Posting comment returns 404
- Comments on Author page
- Load wordpress content in other domain
- How-To and Troubleshooting Canonical Links for Paginated Comments
- WordPress comments work locally only?
- Genesis framework comments broken?
- Link to a User’s Forum Profile From Their Comment
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- comment reply by email
- How do I reply to comments from admin panel on a tablet PC?
- have_comments() does not work
- Disable comments for a user? [closed]
- Checkbox doesn’t stay checked, conten
- wp_list_comments renders incorrectly nested
- Alternative to the filter comment_reply_link
- Display Custom comments field number
- How to use the ‘comments_number’ filter?
- Notify comment author upon reply
- Number/ Position of a Comment
- Incorrect redirection after commenting on custom type
- Polls with respective comments?
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- How to convert WordPress comments to bbPress replies [closed]