I registered a genres custom taxonomy in functions.php but I don't know how to tweak Google News Sitemap Generator to output the information into my sitemap.
I added this to my functions.php
function create_my_taxonomies() {
register_taxonomy('genres', 'post', array(
'hierarchical' => false, 'label' => 'Genres',
'query_var' => true, 'rewrite' => true));
}
add_action('init', 'create_my_taxonomies', 0);
And I don't know how to pull the genres into the XML output. I tried the code below but it didn't work.
$xmlOutput.= "\t\t\t\t<news:genres>";
$xmlOutput.= wp_get_object_terms($post->ID, 'genres');
$xmlOutput.= "</news:genres>\n";
What I get in the output is:
<news:genres>Array</news:genres>