I was having the same problem the other day, due to a completely different typo 😉
$args = array(
'description' =>"My Desc",
'slug' => "My Slug",
'parent' => 0
);
$result = wp_insert_term("Term1", "category", $args);
Note the corrected ‘description’ element in the $args array.
Related Posts:
- How to display a user’s bio (not the author or logged in user)
- show term description instead of list terms of custom taxonomy
- How to display term description in empty terms archive?
- Change description on specific WooCommerce product status change
- Change the meta description on a specific page?
- How to fix a duplicated meta description?
- Garbage code showing up in search result post descriptions
- How do I urlencode() the blog description?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- How can get Woocommerce product single description
- How do you change the site preview description/thumbnail
- Trying to update the meta description of the home page
- How strip the quotation from the meta descrption?
- HTML code in WordPress menu description
- New term taxonomy and description in front page. Input’s
- Insert term description programmatically into hierarchical custom taxonomy
- Display term description on hover using get_the_term_list
- get meta description of rank math in single post for schema
- How to prevent new terms being added to a custom taxonomy?
- How can I get category ID by category name?
- get a specific taxonomy term name
- Is there a filter/action to add content to WP admin metaboxes?
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- How to get term link that crosses different custom post types?
- get_terms() How many is TOO many?
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- Is there any difference between post in child term and child & parent terms?
- How to update incorrect post count in taxonomy?
- Create and move terms for taxonomies
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- get_the_term_list without specific category
- Get Term names from WP Term Object
- List all custom post type posts from a given category?
- Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
- Edit post meta with checkboxes on front end
- functions to create term and child terms
- get_terms() order by term_meta
- How do I get the current tag out of a taxonomy?
- How to order a list of taxonomy terms alphabetically?
- Limit Words in Category / Term Description – Admin Panel
- Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
- ‘wp’ action hook not firing in admin and login?
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Limit Number of Taxonomy Terms (Images) Displayed
- using $wpdb to get custom post type with term
- How to order posts by title after they have already been sorted by category
- How do I require the specification of term in a custom post type and custom taxonomy?
- How can I add an area/option for a custom page description?
- Where does Yoast SEO plugin sets the site/page title?
- Can anybody provide me with a function to generate slugs?
- Add Taxonomy Description with wp_set_post_terms
- Include Parent Term in wp_list_categories
- wp_insert_post() does not support variable
- term_exists() returning NULL on term that exists
- Missing term_id value
- echo term name outside the loop, using term slug
- Display sibling categories on category page
- WordPress Show Parent Category Description for Sub-categories
- get term id from term name
- Count tags for a specific category
- wp_set_object_terms NOT working on CPT, but wp_set_post_terms does
- Display children category images
- how to count the current posts terms
- Get get_terms alphabetically
- How to get term by name with parent id?
- Get current post’s nav menu name (term name)
- How to show post for a particular term of custom taxonomy?
- Custom Post Type Taxonomy Term Order by Title
- How to add description over forum list on bbpress root page
- How to store category and tags separatly on wordpress?
- Add custom post type taxonomy tag to article class
- Show terms in archive page
- Custom Taxonomy dont save in a frontend form for post a custom post
- PHP displaying wrong custom taxonomy images
- wp_delete_term or wp_delete_category?
- How to list terms by first letter, as in A’s then B’s etc
- get_the_terms() returning wrong results inside of loop
- Get List of Terms based on a given term (different taxonomy)
- Sort query_terms_list for post_tags alphabetically
- PHP Warning: Attempt to read property “slug” on bool in tax query
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Get categories within specific term
- get_the_term_list( get_the_ID() label formatting?
- I can get posts in all categories. But I want to get the custom post type I created
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- $_GET[‘title’] in WordPress
- Why is my custom taxonomy image not displaying?
- How to change custom categories term links?
- Change post count on tag/terms pages to 10
- Get custom term link archive with prefix
- Is there better way to do this without duplicating queries?
- taxonomy terms are not populating select tag options
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- Add a custom variable to query page object
- Display taxonomy term slugs
- Tax query array terms display out of order
- Allowing users to add HTML to BP Groups Description how can I error check html of users? [closed]
- Get access to all terms associated to each post that the wp_query loop displays
- list taxonomy terms in current post / current category
- WordPress Two Level Filters on Getting Custom Taxonomy Terms