using blog metas you could do that
you should add a selectbox (using bp hooks) in the new blog creation form and add available categories
and save that using blog metas (blog_option) update_blog_option( 1, ‘blog_type’, ‘Personal Blog’ )
and after apply a filter to the blog name, like
function my_filter_name( $old_name ) {
global $current_blog;
return get_blog_option( $current_blog->ID, 'blog_type' ) . '' . $old_name;
}
add_filter( 'look for this hook name', 'my_filter_name', 1 );
Nicola
BPDEV
Thank you, Nicola!
Is there some example to learn from (regarding blog metas and hooks)?
I “kind of” understand the theory – but I lack the knowledge about the code base to know where to put what.
Hi Nicola,
I would like to be able to add multiple categories, not only one, to a blog and be able to search them by tag then later. Could this be possible?
And to be honest here is my full need is to be able to add also an address and be able to filter blogs / posts based on location. I think this could work with http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=19&colspec=Stars%20ID%20Type%20Status%20Modified%20Summary
what do you think, any idea how I could do this?
To be able to add multiple categories to a blog would be great. And it would also be cool to have the chance to filter the recent blog posts on the home page by categories.
https://wordpress.org/extend/plugins/blog-topics/
I found this plugin which allows the site admin to set blog types (categories). The site admin and the blog admins are then able to apply their blog to one blog type. There is one included function which lets you display all recent blogposts from blogs which use blog type “x”.
What I need for my “home”-page is a function similar to the bp-member-function. Ajax driven “recent blogposts” with filter buttons like “show all, type1, type2, …”.
The problem is that my programming skills are not good enough. Even if I study the bp-member-functions, I’m not able to do it.
Any suggestions maybe? Or any information if a feature like this will find it’s way into buddy press within the next few weeks?
This isn’t in the plugins directory yet but it sounds like what you are interested in. Get you part of the way there anyway.
http://code.ourcommoninterest.org/2009/06/05/bpcontents-10-alpha-2/
Many thanks for the answer.
That’s exactly what I was looking for. Multiple choice categories for blogs. Perfect!
You made my day ^^
Is there a widget planned which displays recent posts filterable by categories?
Or should I continue working on an own solution there (or keep on searching for one^^) ?
At the moment my only plans are to finish and release bpc alpha 3.
This is a documented developer version with some code cleanup and bug fixes.
A reworking of the tag clouds and category trees to be more generic.
Adding sub-categories to the site admin user interface. bpc does this but the category maintenance screen didn’t.