There’s a filter for that! The filter comment_feed_limit
can be used to adjust the LIMIT
clause directly. By default, the option from Settings -> Reading is used (“Syndication feeds show the most recent”), but that’s used for other feeds as well. The comment_feed_limit
filter is used exclusively for comment feeds.
add_filter( 'comment_feed_limits', 'wpse150187_comment_feed_limits' );
function wpse150187_comment_feed_limits( $limit ) {
return 'LIMIT 40';
}
Related Posts:
- show number of open comments on custom dashboard
- Comment Count for each Comment Author
- Where to remove from comment’s feed?
- Disable Comments Feed
- WordPress comment count to include attachment comments
- Comments feed – Undefined named entity: ndash
- Count comment threads, not total comments in a post
- How can I count only guests comments?
- How many members have made comments approved for an article?
- counting trackbacks, pingbacks and comments of a post
- It doesn’t matter if I have more than one comment. get_comments_number still equal to one?
- How include comment and post count of user in this custom query
- How to resolve 404 errors for wordpress comments/feed when I have disabled comments
- How do I comment out a block of tags in XML?
- How to enable comments for pending and draft posts?
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Reverse comment pagination numbers
- Display user’s total comment count outside The Loop
- Show comments from multiple post IDs in comment template
- get recent comments of a particular category
- Sticky Comments
- Whitelisting Commenters
- WP_Comment_Query() displays “password protected” comments?
- Comments number message in password protected post
- Use rich text editor in comments?
- Add a custom class to awating comments
- How to add custom comment fields but *only on the comment reply form*?
- Is it possible to move a comment that should be a reply to another comment?
- Can I seperate comments from post?
- Show only posts which can be commented
- What should I hook to add extra fields to comments?
- Get a variable field of all comments of current post
- Average Score of all ratings in comments
- Making a Comment on a page without being on that page?
- How do I display the commentor’s first name and last name in the comments?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- How To Disable Comments On New Page
- What is the server IP comment hack
- Do I have to have a nonce for a custom comment field?
- Get last seen date/time in wordpress get_comments() [closed]
- WP 4.4.1 allow empty comments via add_action ‘pre_comment_on_post’
- Report spam button
- Recent comments from my blogs only
- Change username to nickname in comment section
- Count all comments of a custom post type
- Hide notifications regarding new comments
- Are there any “YouTube-styled” commenting systems for WordPress?
- how to change comment author’s link from user’s website to author’s page(author.php)?
- Add class to comment form div when comment-reply button is clicked
- Add filter to comments loop?
- Disabling archives, search results, comments, etc?
- Pagination Comments Doesn’t Show
- Show comments to unregistered users
- WordPress comments – how to check if comment still needs to be approved?
- PAIN. Comments Pagination
- How to retain comment text on comment form after login/registration?
- Adding character count and limit in comments, modifying labels and fields – jetpack
- Troubleshooting Emoji in Comments
- Change id=”respond” to the comments container
- Comments on Author page
- Why could my comment_form variable not be working?
- How to block comments and pings?
- Woocommerce comments subscription [closed]
- Can I turn off further comments on a single page?
- How to remove the number of a comment in the url slug?
- Advanced Custom Fields comments [closed]
- How are readers authenticated for leaving comments?
- Are there some caveats for using guids for FB comments
- How to wrap comment_form $fields in one div?
- What’s the difference with trash_comment and wp_trash_comment?
- ask and edit an extra comment field
- Modify links in user comments
- How indicate when a functions was upgraded in relationship to the entire program [closed]
- Refresh individual comment text via API
- How to filter comments by comment_meta
- Prevent users to delete comments from trash
- How can I hide comment of the authors from their published posts?
- How to customize ‘children comments’ in WordPress?
- How to display replies to his comments in user profile of current user
- How do I refresh “Post Last Modified Time”, as long as comment is updated to Approve status?
- Top rated posts Average rating issue
- stop url changing when user comments
- Keep comment author’s name on their comment even when their account is deleted
- Badges for Guests based on their comment counts [closed]
- How to add a class to comment submit button?
- WordPress Commenting System User access and Security
- Comments.php is not getting called on main blog page
- WordPress Comments – Only show part of user name
- Broken comments section – WordPress 2014 Theme
- Need an advice about comments
- How do I get the comments section to show up?
- By Default, Turn Comments Off for Pages & Leave Comments On for Posts
- same comment list for two posts
- Replace do_action() with a normal submit form in comments.php
- edit-comments.php in Admin – how to change ‘Comments’ title?
- Comments on pages not appearing, even though I enabled them
- Stop future commenting on specific post
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved