alleyinteractive / alleyinteractive/es-wp-query
Posts_per_page may not be working properly
未关闭
bug
- 主要语言
- PHP
- 星标
- 125
- 派生
- 28
- PR 合并指标
- 30 天内没有已合并 PR
描述
It seems that when using ES, $wp_query->query_vars['posts_per_page'](inc/post-types/class-post-type-slideshow.php line 142) isn't returning the correct posts_per_page used. It's instead using the site default of 10 (get_option( 'posts_per_page' ));
This is happening at es-wp-query/class-es-wp-query-shoehorn.php in reboot_query_vars() (line 219 currently).
Manually setting $query->query['posts_per_page'] will stop es-wp-query from overwriting the posts_per_page, and this should hopefully be a usable fix until we can look more into why the plugin isn't using the correct number.
贡献指南
评估
这个 Issue 还没有评估数据。