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
- Show comments on WordPress home page
- Comments screen in backend, how to disable email address of commenter for non admins
- How can I limit the number of comments per registered user per day?
- get_comments_number of depth-1 (Level 1) (1 post)
- How can I control the comment counts filtering my CPT replies?
- How to auto-approve internal pingbacks?
- Can I store my custom comment_type into wp_comments table?
- Comments waiting but no comments found
- Number of External Links in Comments – Moderation Option
- What is comment_karma?
- How to override function twentyten_comment
- Disqus over the default commenting engine, what are some pros and cons?
- count number of user comments with a specific comment meta value
- Loop through child images of a parent for a Nivo Slider
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Plugin from WordPress.com for comment notification…available? [closed]
- How to add text to comment form #content textarea?
- Enable Recent Comments widget to display comments on attachment posts
- Change allowed HTML tags for comments
- How can I highlight admin comments?
- Why are my comments closed?
- On WordPress 4.4, how to get the post id using the comment_post hook
- Load comments per post on click with AJAX
- Block comments from search engine indexing
- Create a “Reject” action for comments?
- Notify WordPress Site I Have Linked To Them
- Replace comment avatars and links at the same time
- Add action on delete comments?
- Adding ads code between comments
- Exclude child comments in get_comments() or WP_Comment_Query?
- Changing “submitted on date” of comments
- Filter custom comment type from Manage Comments & Dash Widgets
- Can’t seem to get this CSS to work…any ideas why? [closed]
- Change order of comment fields
- WordPress custom form action url
- How to add a strip of visual editor on top of comments textarea
- Threaded comments not working
- Trying to implement Ajax comments in WordPress, getting WP error
- Customizing comments pagination for bootstrap
- woocommerce allow users to select or use avatar
- Error While Sending Comment
- Why does my callback function not work with this custom filter hook?
- How to print out menu names in the foreach loop?
- Create Page To Count Comments For Each Post In WordPress Site
- Stuck in the query loop
- Problem with Comment link in Blog [closed]
- Commenting in user profile page?
- Can i Use own Facebook App ID with this Social Comment Plugin? [closed]
- Only allow the post author and admin to comment on a post
- Changing the_posts_navigation() html output
- How come pending comments are appearing in admin?
- Generate Sub-Comments with WP-CLI [closed]
- Store post content in a php variable and output them using for loop
- Repositioning ‘Reply’ Link in Comments
- Add an attachment feature to comments
- How to get the last category name of a child category?
- Counting Comments as Singular and Plural in comments.php Template
- WordPress query undefined offset in loop
- How to display custom comment fields onto any page
- How to get Post title by locale with Qtranslate-X
- Retrieve the last 5 comment URLs
- How to extract information from a wp_query result?
- Admin Dashboard – Recent Comments source
- After submit comments select the current tab
- Comment_author_url doing nothing
- How to use filter on comment submission/insert
- Defining ‘last’ class on foreach blog posts
- Custom comment types. Are they a possibility?
- Show the categories the current post has
- Embedding local video in WordPress comments
- Is there a way to link to the BOTTOM of the comments on a wordpress page?
- Pagination not working in custom post type. Help
- Fetch commens from a specific post
- Author name length character limit?
- WordPress trying to query two custom types to get child from the parent
- Admin – Dashboard – Unset recent comments
- Why loop renders only last metabox from array? [closed]
- How does WordPress generate a comment website preview?
- Front End User(bloger) turn on and off his comments
- Advanced Taxonomy query, with 3 post types
- Change comment author after new comment posted
- Show ‘add comment’ link for status updates in Twenty Thirteen
- Pull & display new comments without refreshing the page
- Actual comments not showing, but form is?
- Email from new comments
- Image Upload Form is Disabling Comment Addition
- How do I convert users who put an email and username for a comment into registered users? [duplicate]
- Conditional in foreach loop is outputting content twice
- What filter or action to replace comments or add new comment system
- Auto delete WordPress comments
- WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress