Opened 11 years ago
Last modified 7 years ago
#35398 new enhancement
Allow post types to override `posts_per_archive_page`
| Reported by: | sebastian.pisula | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
fixed
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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_pageis 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_postsfilter can be used to filter the option dynamically.