Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Getting x number of posts from each category – WP Re: Getting x number of posts from each category – WP

#58744

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 “