In my opinion, deprecating numberposts would not make sense, as numberposts is used to query x amount of posts, whilst posts_per_page is used to denote how many posts per page are being shown during pagination. If you were to deprecate numberposts in favor of simply posts_per_page, then pagination would not exist.
ie:
"numberposts" => 50, "posts_per_page" => 10
a total of 50 posts to query, 10 posts per page, giving 5 pages of 10 posts each.
removal of numberposts:
"posts_per_page" => 50
a total of 50 posts to query, 50 posts per page (since it copies the value of numberposts to posts_per_page), giving 1 page of 50 posts and no pagination.
Let me know if I’m just reiterating what you’re already aware of, and I’m just slightly confused by the question.
Related Posts:
- Nested meta_query with multiple relation keys
- How can I save an array from a random post sequence for later use?
- All-in-One Event Calendar: Custom Query – Getting each event Instance [closed]
- Is there an action/filter called when WP_Query->query is finished and assigns posts
- Limit search results to exact match
- Highlighting Sub topic in a post?
- Pagination Not working on Home Page with 2 Query
- Multiple keyword search
- Get number of comments after modifying comment query
- Show default content if custom WP_Query has no posts
- Include Sticky Posts with Custom Query
- $wpdb->insert inserting two rows in database
- Create unique page without header.php for json feed
- Sub-loop / nested loops Best Practices
- How to loop for every result found in the_content() when using the search query?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Order By table field comment_status in WordPress > 4.0
- Clean up WordPress code that repeats
- How to optimize multiple WP_Query() calls on one page?
- Use post object from first query in second query
- Query to get siblings and parent page
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Cutom wp_query for geolocation search, pagination not working
- Include data from custom table in WP_Query
- echo a specific meta_key queried through a custom post
- WP Group posts by year(desc) > month(desc) > date(asc)
- How to order posts on each different category?
- Get specific ACF key and value from all posts – no access to DB
- Orderby two meta fields not working
- Custom wp_query – I’m getting ‘all’ post, not the specific post in the query
- meta_query with array as value with multiple arrays
- Adding pagination to sub-wp_query within a singular post page
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How to make a query returning pages from multiple parents
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Where is this query?
- How to use wp query in my custom page without including header and footer in wordpress
- Custom order revolution sliders post base slides as inserted in Specific Posts List field
- WP Query for all events prior to current date
- How to extend WP_query to a specific table?
- Display the search results like the original pages
- Multi line of $wpdb->query just run 1 time and end the loop right after
- Add to search posts query array with post IDS which will appear first
- Woocomerce – Order products by float attribute in archive pages
- Multiple values in WP_Query : category__and
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- Custom query using WP_Query is not working
- Limit the number of posts from a specific category on index.php
- Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]
- Switched from query_posts to wp_query, pagination no longer working
- WP_Query breaks pagination
- Pagination problem with multiple loops on the same page
- shortcode with $atts with strange results
- Get comment number by date range?
- I need to get all categories from a WP_Query
- $wp_query->found_posts; returns zero
- Rewrite URL custom search query
- How could i add username field in WooCommerce
- Multiple relationship for multiple tax_query in WP_Query
- Get posts from Network (Multisite)
- ACF Relationship Field Search Filtering [closed]
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- WP_Query and Pagination on a Static front page
- How to place a loop within another loop?
- How to filter by category in REST API, excluding posts also in other category term?
- Shortcode returns escaped HTML tags
- How to change a custom query into a standard loop?
- 2 loops on page – one with orderby rand second orderby date
- WP_Query returning no results
- Splice together 2 WP_Query objects
- How to access a query twice in different template files?
- Complex Category selection as per user input
- How to set multiple `orderby` in query argument?
- WP_Query posts_per_page Only Bringing Back one post
- How to get all unique categories for posts in loop?
- Query that loads a custom type AND posts whose ids are not inside those custom types custom fields
- Transient not behaving as expected
- the_post() within switch_to_blog() altering my excerpt
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- Posts published last 10 minutes
- Getting additional columns from sql
- get all posts associated with a custom taxonomy
- WordPress query posts with multiple post_meta data
- var_dump of WP_Query object is not empty, while .have_posts() return false
- How to view all posts of current day as default in admin
- How to show list of posts with custom field value (a date) that are coming soon
- Multiple loops breaking side bar
- $post in wp_query?
- Excluding posts from search results page with meta query not working
- Counting instances of words in the results of a post query
- WordPress custom search form – ignore empty/default input fields upon submission?
- list all post who have mutual taxonomy as current taxonomy!
- How to rearrange posts based on input field values added by WordPress “Advanced Custom Fields”
- I cannot get tax_query in get_posts() to work with custom taxonomy
- Related Posts with removing some categories
- WordPress custom query by archive title
- Is it possible to search for a string in posts OR postmeta?
- Not duplicating $post->ID leaves empty space.
- Add custom argument to WP_Query and modify SQL where clause
- How does Show Posts based on a keyword search work in WP_Query