NO BUG: Sticky posts in query loops change the number of displayed posts per page on frontend

Bricks Version: 1.5.3

Hi,

When setting a posts query loop with for instance 3 posts per page, sticky posts are ADDED to the 3 first posts on frontend, so if there are 2 sticky posts, 5 posts are displayed instead of 3.

On backend, only 3 posts displayed, but they seem to be wrong: the sticky posts replace the first posts instead of shifting them.

Hi Yan,
Thanks for your report!

What happens if you enable “ignore sticky posts”?

Best regards,
timmse

Everything is OK if I ignore sticky posts.

But I don’t want to ignore them :wink:

Hey @yankiara did you solve this issue? I am having it too.

This is default WordPress behaviour and not a Bricks bug (see Sticky Posts | Theme Developer Handbook | WordPress Developer Resources).

See Sticky Posts exceed posts per page limit - WordPress Development Stack Exchange for a possible workaround.

1 Like