How to Fix Pagination on WordPress Custom Loops

So you have added a custom or secondary query to a template file and you get something strange on their pagination? Maybe this solution is solving your problem.

By default, in any given context, WordPress uses the main query to determine pagination. The main query object is stored in the $wp_query global, which is also used to output the main query loop: Continue reading How to Fix Pagination on WordPress Custom Loops