I'm working on a business listing website using a Wordpress theme as the framework. Unfortunately, there is a limited number of categories with no option for a user to request a category. Below you can see an image of the form that users utilize to create a listing.
http://postimg.org/image/5r8scqh8f/
Here is the relevant code related to that section:
function aitDirItemTaxonomies() {
register_taxonomy( 'ait-dir-item-category', array( 'ait-dir-item' ), array(
'hierarchical' => true,
'labels' => array(
'name' => 'Item Categories',
'singular_name' => _x( 'Category', 'taxonomy singular name', 'ait'),
'search_items' => __( 'Search Category', 'ait'),
'all_items' => __( 'All Categories', 'ait'),
'parent_item' => __( 'Parent Category', 'ait'),
'parent_item_colon' => __( 'Parent Category:', 'ait'),
'edit_item' => __( 'Edit Category', 'ait'),
'update_item' => __( 'Update Category', 'ait'),
'add_new_item' => __( 'Add New Category', 'ait'),
'new_item_name' => __( 'New Category Name', 'ait'),
),
'show_ui' => true,
'rewrite' => array( 'slug' => 'cat' ),
'capabilities' => array(
'assign_terms' => 'assign_dir_category'
)
));
register_taxonomy( 'ait-dir-item-location', array( 'ait-dir-item' ), array(
'hierarchical' => true,
'labels' => array(
'name' => 'Item Locations',
'singular_name' => _x( 'Location', 'taxonomy singular name', 'ait'),
'search_items' => __( 'Search Location', 'ait'),
'all_items' => __( 'All Locations', 'ait'),
'parent_item' => __( 'Parent Location', 'ait'),
'parent_item_colon' => __( 'Parent Location:', 'ait'),
'edit_item' => __( 'Edit Location', 'ait'),
'update_item' => __( 'Update Location', 'ait'),
'add_new_item' => __( 'Add New Location', 'ait'),
'new_item_name' => __( 'New Location Name', 'ait'),
),
'show_ui' => true,
'rewrite' => array( 'slug' => 'loc' ),
'capabilities' => array(
'assign_terms' => 'assign_dir_location'
)
));
}
add_action( 'init', 'aitDirItemPostType');
Website: http://reliablist.com
I have made multiple attempts to try to create a 'Request a Category' button, but unfortunately have been defeated by my lack of experience. If I could get help in any direction, it would be greatly appreciated.