Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use WordPress a ton, but I'm somewhat new to multisite. Now that 3.0 has brought multisite into the main core, shouldn't there be an easy loop function that allows you to display the most recent posts from across your network, in a loop, for me to output in PHP as I want?

Does anybody know if this exists and I'm just missing it?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Wordpress doesn't (and won't) support this natively.

The alternative is to write your own template with a custom request. (You might even have to drop down into MySQL - I'm not sure the built in Wordpress query system will be capable of this.)

Check out this plugin though: WordPress MU Sitewide Tags Pages It might give you an acceptable compromise, or it might give you a starting place when coding your own approach.

Good luck!

share|improve this answer
    
Thanks. It seems so strange to me that they wouldn't build this as core functionality. Of course multisite users would want to have a Loop object that's global. –  Jason Rhodes Sep 20 '10 at 15:12
    
What I'm wondering is if I drop into $wpdb for custom SQL queries, can I use the returned data to instantiate a WP_Query object so I can use standard Loop functions to output the posts, or will I be stuck using mysql_fetch_array and other raw PHP to get to the post data? Thanks again. –  Jason Rhodes Sep 20 '10 at 15:13
    
Hmmm. Interesting question. (Probably a valid question in its own right.) Without opening it up and having a look, I'd guess that it would be possible, but this is pure speculation. If you did this however, you'd lose data about the source blog. Maybe extend WP_Query? Or just go straight from the MySQL to PHP? –  Tom Wright Sep 20 '10 at 16:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.