NO BUG: Pagination issue while using more than 1 query loop on a page or template

I’m using Bricksbuilder for my WordPress site. Whenever I use more than one query loop on a page or template, the pagination gets disturbed. For example, if it is showing 4 pages in pagination and I manually enter /page/5/ it shows a blank page instead of a 404 page. How can I resolve this issue?

Hi Usman,
Thanks so much for your report!

Can you provide me with a live link?

Best regards,
timmse

Hi timmse
Thanks for your attention and sorry for late reply.

Here is the link https://www.itechtics.com/

This is a page where I’m using multiple query loops. But the main query is at the bottom of the page having heading ( LATEST FROM ITECHTICS )

The total number of pages that the pagination is showing is 157. If I write /page/158/ manually, it shows a blank page instead of a 404 error page.

Hi Usman,
Thanks for the link! I did some research/testing and found out that the behavior also happens with the default WordPress themes. Go to any page (whether it has pagination or not) and add /page/345 at the end. You will see that in this case also no 404 is output.

Have a look at this report on the Kriesi theme, where you can find more information:

Best regards,
timmse

Hi timmse,

Thanks for your response and clarification on the issue.