I want to get the recent comments on all posts in a multisite network, and I want to display these ceomments in a sidebar on the multisites "mother" blog. To complicate: All blogs are forced to post in either category A or category B. I want two outputs on the mother blog, showing comments on posts in category A and a second output for comments posted in category B. Question: Is this possible?
|
|
Well it is quite possible, when using a multisite you have a few extra tables in your database. One of them is one that is called wp_site which has inside it a list of all your blogs. It looks something like
You would have to fetch all of these, and then you could fetch all other posts comments using the $wpdb->get_results more or less like so,
Afterwards you would need to check for the posts category and post it on the front side accordingly. If you need more help, comment here, I'll try to supply more data. |
|||||||
|
|
There are quite a bit of plugins available to do this for you, a quick Google search will get you there.
Can be found here.
Can be found here. A list of premium plugins (one matching your exact requirement) can be found here. Hope this helps, |
|||
|
|