Title: Delete Genre(s)
Last modified: December 14, 2016

---

# Delete Genre(s)

 *  Resolved [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/)
 * (@guillermovalls)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/)
 * I would like delete Genre(s).
    Is it possible without edit the archives plugin?
   I think that is very interesting add a option in the panel…
    -  This topic was modified 9 years, 6 months ago by [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/#post-8552492)
 * Hi Guillermo,
 * Genres is a fixed set, limited to [https://support.google.com/news/publisher/answer/93992](https://support.google.com/news/publisher/answer/93992)…
   Why do you want to change or delete those?
 * Maybe to prevent other authors from using certain genres?
 * Might indeed be interesting to allow editing of the taxonomy terms for such cases
   but the problem is that it also allows for (other) admins to mess things up very
   easily. I’ll need to think about this…
 * In the mean time, you could do this:
    Go to the Plugins > Editor and select plugin
   to edit: “XML Sitemap & Google News feeds” and hit Select. Then click on the 
   Plugin File “xml-sitemap-feed/includes/class-xmlsitemapfeed.php”. Scroll down
   to the end of the file and find the function `register_gn_taxonomies()`, it’s
   the third from last.
 * Inside that function, at the end, you can find the part:
 *     ```
       'capabilities' => array( // prevent creation / deletion
       		'manage_terms' => 'nobody',
       		'edit_terms' => 'nobody',
       		'delete_terms' => 'nobody',
       		'assign_terms' => 'edit_posts'
       	)
       ```
   
 * Now replace every ‘nobody’ there (3 times) with ‘manage_options’ and hit Update
   File.
 * All admins are now (until the next plugin update) allowed to delete, add or change
   the Genre taxonomy terms. Modified or deleted terms should remain so after the
   next update, unless there is a forced reset of the terms.
 * I’ll consider leaving them editable to admins in the next release but cannot 
   promise anything…
 *  Thread Starter [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/)
 * (@guillermovalls)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/#post-8552749)
 * Thanks for your quick response.
    I work in a digital newspaper and im selecting
   the genre as a blog when It really isnt a blog or any of the other genres. I 
   would like to leave it empty blank. You should have that option in the list of
   genres. Just a tip.
 * Thanks by support and congrats. You made the best plugin of sitemaps for WordPress.
   😉
    -  This reply was modified 9 years, 6 months ago by [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/).
    -  This reply was modified 9 years, 6 months ago by [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/).
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/#post-8552891)
 * By selecting no Genre when posting, the genre field will remain blank. Make sure
   you have NO default genre set on Settings > Reading under the Google News settings.
 *  Thread Starter [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/)
 * (@guillermovalls)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/#post-8552980)
 * Perfect!!!
    Thanks [@ravanh](https://wordpress.org/support/users/ravanh/)
 * Regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Delete Genre(s)’ is closed to new replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Guillermo Valls](https://wordpress.org/support/users/guillermovalls/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/delete-genres/#post-8552980)
 * Status: resolved