I need to override the setting in the WP Admin for the number of recent posts in the Syndication settings under General -> Admin.
I'm using the following code, which gets all posts, but I don't need that many. Can someone tell me how to retrieve 50 posts?
function no_limits_for_feed( $limits ) {
return '';
}
add_filter( 'post_limits', 'no_limits_for_feed' );