Loop query error on paged url

Version: beta 1.3.7

The query loop on a container element don’t work properly when a main query is paged.

For example, if I’m in “domain.com/blog/page/2”, a inner query that I use in a container element for a different purpose (some query in footer template) than the main query, is not working properly (does not query any post)

So if I’m in “domain.com/blog”, the query in the footer is working properly.

Probably is because the query loop element tkaes some parameters from the main query.

Hi salwebs,

a potential fix for this is the newly introduced merge_query filter.

Can you give it a shot and let me know if it works for you?

Best regards,
timmse

ok, and where can I run this code?

  • code element before the loop?
  • in a plugins or theme functions?

Ah sorry, you need to use the bricks child theme, which you can download in your account next to the regular theme download button.

Place the filter into the functions.php of the child theme (and don’t forget to activate the child theme).