I have this plugin which works great in Wordpress but doesnt seem to work with WPMU. It doesn't give a error, it just displays default info instead of values from wp_#_postmeta table from database. Here is the plugin code, could anyone see if it can be fixed to work with WPMU, i dont think it would be a issue, just maybe it's not seeing the different tables for each users blog in the database.
$keywords = '';
function wr_meta_head(){
global $posts, $post_meta_cache, $keywords;
$meta_string = null;
$description = get_settings('blogdescription');
foreach ($posts as $post) {
if ((is_single()) or (is_page())) {
$id = $post->ID;
$meta = &$post_meta_cache[$id];
if(isset($meta['keywords'])){
$keywords_array = $meta['keywords'];
$keywords .= ', '.$keywords_array[0];
}
if(isset($meta['description'])){
$description = $meta['description'];
$description = $description[0];
}
}
}
$meta_string = sprintf(" <meta name=\"keywords\" content=\"%s\"/>n", $keywords);
$meta_string .= sprintf(" <meta name=\"description\" content=\"%s\"/>n", $description);
$meta_string = str_replace('content=", ', 'content="', $meta_string);
echo $meta_string;
}
add_action('wp_head', 'wr_meta_head');