[wp-trac] [WordPress Trac] #35398: Allow post types to override `posts_per_archive_page` (was: Param `posts_per_archive_page` don't work)
WordPress Trac
noreply at wordpress.org
Mon Jan 11 11:05:17 UTC 2016
#35398: Allow post types to override `posts_per_archive_page`
------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Changes (by swissspidy):
* type: defect (bug) => enhancement
Comment:
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 mean `posts_per_page`, since `posts_per_archive_page` is
basically `posts_per_page`, but for archive pages.
As I mentioned
[https://wordpress.slack.com/archives/core/p1452506889009468 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35398#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list