This is no normal filter. It’s a filter_ref_array
.
// Use this to alter your limit:
add_filter( 'post_limits', create_function( '$a', "return 'LIMIT $start, 10';" ) );
EDIT
After I saw that this got marked as solution, I want to show you a more “best practice”-approach:
function alter_feed_post_limits( $limits )
{
return " LIMIT 0,50";
}
add_action( 'post_limits', 'alter_feed_post_limits' );
Related Posts:
- How To Disable (or Remove) “All Posts, Published, and Trash” in Dashboard Posts
- How to Arrange Posts by Size in the WordPress Dashboard?
- RSS for Pages Instead of Posts?
- How to get a post content from another wordpress blog/site?
- Get all posts by post_author
- Create pretty permalink for a post knowing the permalink structure
- Show ‘Read more’ in rss feed
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- get_the_content_feed with paginated posts
- WordPress’ ALL post count info on its dashboard does not match phpMyAdmin’s ALL post count!
- Addition Text to Post Titles (Custom Post Types) in RSS
- Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
- After database migration, posts not showing up in dashboard
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- remove post and categories/tags count from right now dashboard widget
- Develop Admin Panel Page
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Publish a Silent Post without updating Feed
- Problem with articles feed: XML Parsing Error: XML or text declaration not at start of entity
- I want to add another search box on posts page in dashboard
- How to preserve HTML from posts in RSS feed
- Every time I try accessing a post it redirects me to the feed
- How to view a post from the wordpress admin screen
- link to edit a post has empty target
- Very weird behaviour after removing WP pages
- How to display post excerpt beside post list inside Post of Dashboard
- Get from the dashboard the ID of the current post being edited
- How to test if user is filtering post list in dashboard
- Hide Admin posts & pages in Dashboard
- How to include Related Posts in WP RSS feed
- Creating / Editing a post from within site template
- find view post hyperlink in PHP wordpress admin file
- Add News Feed to bespoke website, only to one page on whole site
- Allow User Can See His Post on his dashboard
- How do I save JS classes being applied to the WP dashboard via custom plugin?
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link
- Get WordPress post content by post id
- Get page ID of page that is set as the posts page
- Get Posts Under Custom Taxonomy
- How to limit the number of posts that WP_Query gets?
- Stop WordPress Wrapping Images In A “P” Tag
- When is the ‘post_content_filtered’ column in database cleared by WordPress?
- Turn a URL into an Attachment / Post ID
- GET the excerpt by ID
- Stop WordPress automatically adding tags to post content
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- How to add an admin notice upon post save/update
- Print Current Post Index number within Loop
- Should we trust the post globals?
- Optimize post insert and delete for bulk operations?
- Get the Current Page Number
- How do you add thumbnail support for custom post types?
- How to mark every 3rd post
- Change Posts per page count
- Keep featured content post in homepage with original order
- How to display related posts from same category?
- Can posts have parents?
- Is there a action hook for the “Empty Trash” button?
- How to end the excerpt with a sentence rather than a word?
- How do I check if I linked to a post before I delete it?
- How to change the case of all post titles to “Title Case”
- Appending content with broken in 4.4
- How to get posts published between a date and today?
- ZIP up all images displayed in a [gallery] and offer as download link
- How to detect single.php (but not single-portfolio.php)?
- How to check if post meta key exists or not in wordpress database
- How to remove a column from the Posts page
- removing inline styles from wp-caption div
- What is the use of to_ping and pinged column?
- How to use “Add link” pop up for a WordPress widget
- Remove Categories / Tags From Admin Menu
- How to retrieve text only from wp_content() not from wp_excerpt()?
- Stop WP from creating “Sample Page” and “Hello World!” post
- Where is the old post permalink slug stored?
- How to Create Editable Blocks of Text for the Homepage?
- Keyboard shortcut for updating a page or post?
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Apply the_title() filter in post & page title, but not in menu title
- How to Change Order of Posts in Admin?
- is it possible to get next_post_link
- Get post content by ID
- How to get post creation date?
- Update post counts (published, draft, unattached) in admin interface
- Function to execute when a post is moved to trash .
- How to get post ID of the current page/post inside a widget?
- add action only on post publish – not update
- How to display by default only published posts/pages in the admin area?
- How do you add Read more … link to posts?
- How to make comments work for a post loaded per Ajax?
- Is there an if statement that can determine if a post in the loop is the last post?
- Get current menu_order
- How to show related posts by category
- Changing the post date and time with function
- simply loop through posts
- Difference between an archive and a page listing posts
- Delete Associated Media Upon Page Deletion
- Set Default Listing “View” in Admin
- Access post from post id in URL