Title: Automatically create categories
Last modified: August 20, 2016

---

# Automatically create categories

 *  Resolved [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * (@ownedbyhleb)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/automatically-create-categories/)
 * I am currently developing a theme which has a number of categories that are used
   for positional elements on the homepage. I would like a way of automatically 
   creating these categories for the user when they activate the theme? Is there
   anyway this is possible?
 * I’ve tried using `wp_insert_category()` but this triggers `Fatal error: Call 
   to undefined function wp_insert_category()`. Any ideas? I’ve even tried replacing
   my `taxonomy.php` with the [latest version from trac](http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/includes/taxonomy.php)
   to no avail…

Viewing 1 replies (of 1 total)

 *  Thread Starter [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * (@ownedbyhleb)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/automatically-create-categories/#post-2325762)
 * Solved using [Category Importer](http://wordpress.org/extend/plugins/category-import)

Viewing 1 replies (of 1 total)

The topic ‘Automatically create categories’ is closed to new replies.

## Tags

 * [automatically](https://wordpress.org/support/topic-tag/automatically/)
 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [category](https://wordpress.org/support/topic-tag/category/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Martin Black](https://wordpress.org/support/users/ownedbyhleb/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/automatically-create-categories/#post-2325762)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
