Query Loop for Sticky Posts Only doesn't limit posts

  • WordPress 6.0.1
  • GeneratePress 3.1.3
  • GP Premium 2.1.2
  • GenerateBocks 1.5.4
  • GenerateBlocks Pro 1.3.0

I’ve also tried to limit the number of post with a filter
$query_args['posts_per_page'] = 1;
No effect either.
Shows all sticky posts.

It’s interesting that in the editor the limitation Posts per page gives correct output, but not on front.

If pagination is added, then after Next is clicked it shows the second sticky as single; Next → third sticky, alone. But initially shows them all.

I am having same issue here - did you hear back or get a fix?

@Rafiozoo @scottgrantwv that will be fixed on GB 1.6 that will be on alpha soon.

Here’s the PR: Fix: Sticky posts only not displaying correctly in the frontend by JeanPaiva · Pull Request #660 · tomusborne/generateblocks · GitHub

1 Like