WordPress pagination is not working

  • Add pagination as follows:

$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“post_type=products&posts_per_page=6&paged=$paged”);

  • Include query_posts parameters in double quotes.

query_posts(“post_type=products&posts_per_page=6&paged=$paged”);