We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
found_posts
After 483f34d, the wp:query-pagination-numbers block shows 10 pages when it should show 11.
wp:query-pagination-numbers
I think the problem is the one described at https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination#Offset_Using_pre_get_posts, where found_posts needs to be adjusted to account for the new offset.
offset
add_filter( 'found_posts', __NAMESPACE__ . '\foo', 1, 2 ); function foo( $found_posts, $query ) { $is_posts_index = is_posts_index( $query ); if ( ! $is_posts_index ) { return $found_posts; } return $found_posts + 5; }
This is blocked by #70 , though.
The text was updated successfully, but these errors were encountered:
#70 is closed now. Is this still blocked @iandunn?
Sorry, something went wrong.
No, but it looks like the problem was also fixed by some earlier change 👍🏻
No branches or pull requests
After 483f34d, the
wp:query-pagination-numbers
block shows 10 pages when it should show 11.I think the problem is the one described at https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination#Offset_Using_pre_get_posts, where
found_posts
needs to be adjusted to account for the newoffset
.This is blocked by #70 , though.
The text was updated successfully, but these errors were encountered: