Wordpress Multisite Tools?
February 2, 2011 1:29 PM
Is it just me, or is displaying cross-network data from a multisite installation of Wordpress bizarrely hard?
Can you recommend some non-Wordpress solutions to overcome my hurdles?
There's the Sitewide Tags plugin, which works (to my mind) very strangely by duplicating every post and posting them to a master blog. Odd as this is it gets me a long way, but there are other things I can't seem to do, and I can't believe no one has figured this out already...
Among other things I need to be able to display lists of most recommended and most viewed posts across the network, as well as create identical custom taxonomies (which are actually huge, and it's a non-trivial effort to re-do every time I add a new blog).
Anybody got any good links?
There's the Sitewide Tags plugin, which works (to my mind) very strangely by duplicating every post and posting them to a master blog. Odd as this is it gets me a long way, but there are other things I can't seem to do, and I can't believe no one has figured this out already...
Among other things I need to be able to display lists of most recommended and most viewed posts across the network, as well as create identical custom taxonomies (which are actually huge, and it's a non-trivial effort to re-do every time I add a new blog).
Anybody got any good links?
I wrote a plugin to duplicate a custom taxonomy across all blogs in a multisite WordPress installation - it's very basic. The reason for the Sitewide Tags/Sitewide Search plugins posting to a master blog is query times in the database. You're not limited to this as a solution, but it does reduce the database load on massive multisite blogs and saves page load times as well on searches. On some sites that I know are limited to five or less blogs I've written plugins that just query across the network as you describe. It's still just a database, and still just PHP - you're not really limited to the WordPress core functionality.
posted by annathea at 3:38 PM on February 2, 2011
posted by annathea at 3:38 PM on February 2, 2011
This thread is closed to new comments.
Now, my understanding is you probably could do something like switch_to_blog() calls across an array of blog ids, and for each one use query_posts() with orderby=comment_count (or whatever criteria you're using to determine most recommended), then aggregate that all in PHP, then display. Seems straightforward but if you have a lot of blogs it probably is something you would want to schedule and do in such a way that site performance is not impacted.
I'm curious to hear what you come up with for this. I've done a fair amount of WordPress hacking and would be happy to help out if you MeMail me. Another tack is to ask over on the pretty-darn-good http://wordpress.stackexchange.com/.
posted by artlung at 2:02 PM on February 2, 2011