alleyinteractive / alleyinteractive/es-wp-query

Posts_per_page may not be working properly

未关闭
#18 1 条评论 0 个 reaction 已指派 1 人 已被 @mboynes 认领 在 GitHub 查看
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。