Multiple post queries -category,posts per page,orderby
You are passing the cat parameter twice– the second time is empty. $page_query = new WP_Query( ‘post_type=post&cat=145’. ‘&posts_per_page=-1&cat’ . // <– here ‘&orderby=date&order=asc’ ); Maybe it is just me, but I find those query-string-like parameters hard to read and hard to keep straight. I’d advise you to create a proper array. $page_query = new WP_Query( … Read more