get_posts custom paging

Your problem is that you use core url parameters (paged in this case) for something that is not the main loop.

There are two possible solutions

  1. instead of writing your own loop, use the pre_get_posts filter to modify the main loop.

  2. Use your own pagination parameters (for example jr_paged).

502 Bad Gateway

502 Bad Gateway


cloudflare