admin管理员组文章数量:1316823
I use a WordPress plugin 'List category posts' to show a category wise list of articles on a single page. What problem I am facing is I can see only 14 posts for every category. I am assuming that the archive page set to exhibit 14 articles is a hindrance in pulling. Even by using the Shortcode [catlist id=66201 numberposts=50] or other numbers the page display only 14 posts. With [catlist name=microsoft-edge post_type="post" numberposts=500] the same returns. I have got tired of trying googling and searching for a solution and implementing codes; kindly help me out.
I use a WordPress plugin 'List category posts' to show a category wise list of articles on a single page. What problem I am facing is I can see only 14 posts for every category. I am assuming that the archive page set to exhibit 14 articles is a hindrance in pulling. Even by using the Shortcode [catlist id=66201 numberposts=50] or other numbers the page display only 14 posts. With [catlist name=microsoft-edge post_type="post" numberposts=500] the same returns. I have got tired of trying googling and searching for a solution and implementing codes; kindly help me out.
Share Improve this question asked Nov 8, 2020 at 21:56 SK21SK21 174 bronze badges 12- Is anyone here? – SK21 Commented Nov 8, 2020 at 22:28
- Skimming the plugin it looks like it just passes the numberposts number into WP_Query as posts_per_page. I'd check your plugins and theme for anything that might be setting a value for posts_per_page, e.g. in a pre_get_posts hook. I'd probably also check exactly what SQL WordPress is running for the category page, e.g. using the Query Monitor plugin, or a database profiler, to see if the 14 is actually there in the SQL or not. But it must be coming from somewhere outside this plugin, e.g. another plugin or your theme. – Rup Commented Nov 8, 2020 at 22:59
- But there isn't the same volume of people here as there is on StackOverflow, and we're not experts in this plugin. I see you've raised this as an issue on the plugin's GitHub too, which is the right thing to do. But I'd guess this is something else in your site that's adding the limit, not the plugin. Do you see a 14 item limit on any other pages? – Rup Commented Nov 8, 2020 at 23:10
- Yes, on the Archive pages of the site, 14 posts are being illustrated. One thing I should add here - When I add a function for the listing it also pulls the same number of items (14). – SK21 Commented Nov 8, 2020 at 23:22
- I have already raised my voice on Github today and am waiting for an answer. – SK21 Commented Nov 8, 2020 at 23:24
1 Answer
Reset to default 1It might be because of pagination. Check you /wp-admin settings.
Also, try to set numberposts=-1
.
Source: https://github/picandocodigo/List-Category-Posts/wiki/More-parameters-you-can-use
numberposts - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Ex: [catlist name=mycategory numberposts=10] You can set the default number of posts globally on the options page on your Dashboard in Settings / List Category Posts.
本文标签: pluginsList category posts displaying limited posts
版权声明:本文标题:plugins - List category posts displaying limited posts 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742008947a2412526.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论