admin管理员组文章数量:1122832
In the admin panel (backend) when you go to "posts" it shows you a pagination (in my case with 29 posts per page).
Is it possible to change to posts per page number for a specific post type?
Thanks.
In the admin panel (backend) when you go to "posts" it shows you a pagination (in my case with 29 posts per page).
Is it possible to change to posts per page number for a specific post type?
Thanks.
Share Improve this question edited Sep 19, 2016 at 8:25 Ben asked Sep 19, 2016 at 7:52 BenBen 3691 gold badge5 silver badges15 bronze badges 2- Do you mean for a custom post type query in the backend or the frontend ? – birgire Commented Sep 19, 2016 at 8:08
- I mean the backend. – Ben Commented Sep 19, 2016 at 8:23
1 Answer
Reset to default 6This is a wordpress core feature on most (all?) list type admin screen, you just go to the "screen options" (right below the admin bar) and change the "number of items per page" setting. This setting is stored per user per screen therefor each user can customize it to whatever works best for him.
IMO this is all you need, and there is no need to do any coding, but if you want to have different default value than 20, you should investigate where the value is saved in the user meta and set it upon plugin activation.
本文标签: Is it possible to change the admin posts per page view
版权声明:本文标题:Is it possible to change the admin posts per page view? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736290390a1928503.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论