take a look at wp_insert_term
which you can use to create your new category ex:
wp_insert_term($termName,$taxonomyName);
in your case $termName
should be the title and $taxonomyName
should be category
Related Posts:
- How do I create a way for users to assign categories to a post from the frontend?
- How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?
- Saving two categories from two dropdowns in front end posting form
- How do I create a way for users to assign categories to a post from the frontend of the website?
- wp_update_post is not updating category
- Update custom category fields front-end
- front end add category to new post
- Get the children of the parent category
- How to remove the term “category” from category pagination?
- Force WordPress to Show Pages Instead of Category
- How do I get the category URL from get_the_category?
- Is there a way to remove categories in bulk?
- Is it possible to put next and previous category links?
- Custom category template pagination problem
- Deleting All tags except categories Wp database
- Action hooks returning old category instead of new category
- Getting category before saving post
- How do I change the sql query for wp_get_archive()
- New categories are now going to 404s
- How to put enctype=”multipart/form-data” in categories form?
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- What is the advantage of using header-catname.php over is_category(‘catname’);?
- Custom WP_Query for current category (in category.php)?
- Why is get_the_category() saying that I have two categories?
- Custom sidebar on category pages
- Insert Into Sub-child Menu
- How do I get the category slug from wp_dropdown_categories
- Change the category of all posts in it
- Search Posts / Pages with multiple options?
- How to hide some categories in category list under post in wordpress?
- exclude categories from search results
- Why do my categories redirect?
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets
- how to get child category title and image
- How to display all the categories a post is in
- Why don’t posts show up in my categories on the frontend?
- Creating Category Specific menus
- Category archives with monthly pagination
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- How do I query_posts in cat=1 AND not in cat=2
- How to do some action weekly?
- How to hide child categories from displaying
- Display single category name in woocommerce loop
- How to allow Category Title to use tags?
- Use premade array as categories in wp_query?
- How do I get category and page ID’s?
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- Multiple selection for wordpress widget
- How do you use the featured image of the most recent post in a category as the background image
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- function query_posts disabling current_page_menu class
- Using if statement in index.php instead of creating separate template files
- post_categories array using variable
- Pagination doesn’t work on multiple categories
- Multiple category posts on one page
- Problem with multiple loops in wordpress theme
- How to get category names in post_class?
- output only if within a combination of two cats
- Panoramica Theme Portfolio
- Detect category choice for posts with multiple categories
- wp_insert_link not working
- Adding tinymce to Custom Field boxes on Category edit page
- wp_list_categories : how do I sort by ID when IDs are not sequential
- Showing different posts on category pages
- add current-cat class to single post page
- How to exclude certain categories showing in Gutenberg?
- Problem with pagination block in Gutenberg
- Product category display in tabs
- How to redirect to category page if page does not exists?
- Sort categories by custom field in WordPress admin
- Why is URL Slug Saving Differently From How It’s Been Defined?
- Remove “Category:” from Post meta
- Related to genre and category
- Get permalink to latest post in category
- How to noindex, follow a specific category wordpress?
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- restrict category to only logged in User
- Category and tag urls return 404 error
- Dynamically creating content on custom URL without getting 404
- Removin /page/2 from pagination
- get parent_category class in loop
- Group Posts by First Letter of Title categories
- Display all of a post’s categories except the current category
- Alphabetize all but one category
- How to display only category of blog without custom code?
- How to create a category or tag available exclusively to the admins and not to the users?
- Printing direct descendants of a category with WP_Query
- wordpress category.php query for featured news item, broken pagination and repeating posts
- Listing category
- Form Value of drop down category + Translation of ‘show option none’
- Echo class depending on Parent category
- Query pages by category
- List all authors by matching custom meta data on a category page
- Page view: Sorted by categories
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Showing one post from each category, paged?
- One color to category link depending on category ID
- Show subcategories and hide posts or show posts if not exists subcategories
- Weird html output of single_cat_title – is not inside of the html element?