Even with Most Popular commented out, I still get "Sorry, no posts matched your criteria". Odd.
Only plugins activated are "Customisable Post Listings" and "Popularity Contest"
Could it be a server issue (although I can't think why...)?
If it helps:
- MySQL Version - 4.0.22-standard
- PHP Version - 4.3.9
Anything else that would be useful to know?
Ok, I've ascertained that it's only when we use multiples that there's a problem - using
(there are no posts under category 1) returned results exactly as expected.
$my_query = new WP_Query('cat=2&showposts=10');
Furthermore, I believe the reason I got a "Sorry, no posts matched your criteria" was because there were no posts in category 1. When I do
, I only get category 2 posts shown. So obviously it's only getting the posts from the first category listed. Which is a bit strange. Would there be any way of getting round this?
$my_query = new WP_Query('cat=2,3&showposts=10');