Capa / Portfolio / 232 posts / 965 comentários

This really simple plugin lets you assign a category for each blog on some WordpressMU installation. It’s also possible to get or list the blogs providing a category.

The categories are stored as option strings on the blog options table, and they can be set through the “Misc Options” section of the blog options.

Once installed, you’ll have the following functions available to use on your templates:

Get the category of a blog.
`blog_categories_get($id)`

Get a list of blogs with the category provided.
`blog_categories_get_list($category)`

List the blogs with the category provided.
`blog_categories_list($category)`

Download it here.

Installation

1. Upload the `blog-categories.php` file to the mu-plugins directory.
2. Use some of the functions on your template.

As this is a WPMU plugin, no activation is required.

This is how “Misc Options” will be shown after installed. Just put up the category of the blog here.

Blog Categories

Changelog

= 0.01 =
* Plugin released. That’s it.

2 Comentários

Haider — 12 de dezembro de 2009 às 07:36 #

Its giving parse error when i place this plugin in mu-plugin folder in wordpress-mu-2.8.5.2

Vinícius Massuchetto12 de dezembro de 2009 às 20:00 #

Oh. Sorry about that. I’ve just pulled up the functions and forgot to do major testing on other wpmu versions.

I’ll let you know as soon as I fix this.
Thanks!