Home › Forums › Back End › Getting x number of posts from each category – WP › Re: Getting x number of posts from each category – WP
June 8, 2009 at 7:01 pm
#58744
davesgonebananas
Member
Just saw this post. The tricky thing is in a standard query_posts call you can only specify the max. number of posts to show, not the number of posts per category. To get around this we have to make a seperate query for each category.
The following snippet is an example:
Code:
“;
foreach ($categories as $category) {
echo “
foreach ($categories as $category) {
echo “