Revert "changed query_posts() to WP_Query()"

This reverts commit 788a7008ec86aa493e63963b309b67d75d722de7.
Revert "Revert "changed query_posts() to WP_Query()""

This reverts commit eafe842a4492491e3fa9037753847c2e3318d5b1.
pagination bug fixed

There was no pagination because earlier we moved to WP_Query() and
forgot to change a global variable.