has a deprecated parameter (showposts) in it, according to the query_posts function reference. Try using posts_per_page=3 instead of showposts=3.
That should display 3 posts per page, but I think those will be just the last 3 ones, instead of 3 random ones like you want. Worth to try though.
I don’t think that’s what he’s asking, what he has should give 3 random posts from a category but he had to use that query post function with each loop 12 times, once for each category. I don’t know whether there’s a way to achieve this with just 1 loop/query post – I haven’t seen anything while browsing the codex, but if someone else has a solution then I’d be very interested to hear it too!
@Bob I’m not having a problem with it displaying 3 random posts using showposts. But I probably should switch to using the non deprecated call. Thanks!
@Johnnyb Yes I’m wondering if there’s a way to use one loop to do it all, instead of 12 separate loops. The homepage does 143 queries in just under 2 seconds. At least that’s what I’m getting for the output using:
I can’t answer that, but I would like to know the answer. I myself have a question on looping and was wandering if any of you could take a look at it & give me a response. I was thinking I might find the answer her…