Making each blog’s tags, site-wide (like wordpress.com)

0

Hello,

I’m hoping you’ll be able to tell me there’s already a plugin for this, but I’d like to join all blogs on my WPMU install in the way that wordpress.com have. This way, when you click on a tag on a single blog, you are taken a a list of all posts tagged with that tag on the entire install.

On wordpress.com, categories behave like tags on wpmu, in that they link to other posts on the particular blog, but tags link to posts on other blogs.

Thank you

Joss

  • drmike
    • DEV MAN’s Mascot

    We do this but *cough* we don’t steal enduser’s visitors like wp.com does. The bad news though it’s not a plugin but a core edit for us. The function that displays the categories is not pluggable and for it to work for us, we have to edit core. Also the same function that displays the category links on the blog side is the same function call that displays them on the Edit -> Posts page.

    For us the display categories function gets duped into a plugin and renamed for the admin side. We have to make a core edit within the admin code to call the new function we’ve created. We then have to edit the old display categories code to change it to whatever you want it to display. That’s a core edit as well.

    I seem to remember a trac ticket that got closed without any real comment on the topic of making categories plugable.

    We do it slightly different though than wp.com does theirs. Instead of linking categories to the sitewide tag solution, we create either a third line for sitewide categories or throw in a “Sitewide” link right after the specific category within the local category line.

    I had asked for the private subforum so I could release satuff like this but since the laptop dies, I’m limited to about 2 hours of computer time a day. I’ve gotten kind of behind. Hopefully I can get this code out sometime.

  • Aaron
    • Ex Staff

    And for the simple answer, the Sitewide Tags plugin will do most of what you want. It copies everyones posts, tags, categories into a tags blog. Then you can use switch_to_blog to display any tenplate functions in your theme. Or dsader has a widget that can display things from the tags blog.

  • drmike
    • DEV MAN’s Mascot

    Then you can use switch_to_blog to display any tenplate functions in your theme.

    I think we tried that on an install and someone else did on the mu forums. Had an issue with relating the current post and finding it on the tag blog. Was there ever a work around?

    Just wish they would make the category functions plugable. Would solve everything.