Opened 9 years ago
Last modified 6 years ago
#35398 new enhancement
Allow post types to override `posts_per_archive_page`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
fixed
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Just to be clear, you're suggesting that the "Posts per page" setting should be configurable per post type in
register_post_type()
. And I suppose you meanposts_per_page
, sinceposts_per_archive_page
is basicallyposts_per_page
, but for archive pages.As I mentioned on Slack, you can currently change the "Posts per page" option under Settings -> Reading. It's not dependant on any post types, though the
pre_get_posts
filter can be used to filter the option dynamically.