Title: custom post taxonomy
Last modified: August 21, 2016

---

# custom post taxonomy

 *  Resolved [eduardovc](https://wordpress.org/support/users/eduardovc/)
 * (@eduardovc)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-post-taxonomy-1/)
 * I have custom posts with custom taxonomies. I want to create a new custom post
   in a category. Everything works fine except the link to a custom category. The
   API says to use ‘terms_names’, but I don’t have explanation about the usage of
   this variable. The code below:
 *     ```
       'title'=>$title,
       'description'=>$body,
       'mt_allow_comments'=>0,  // 1 to allow comments
       'mt_allow_pings'=>0,  // 1 to allow trackbacks
       'post_type'=>'ad_listing',
       'mt_keywords'=>$keywords,
       'categories'=>array($category),
   
       'terms_names' => array('ad_cat' => 'Audi'),
       ```
   
 * [http://wordpress.org/plugins/extended-xml-rpc-api/](http://wordpress.org/plugins/extended-xml-rpc-api/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [michaelgrosser](https://wordpress.org/support/users/michaelgrosser/)
 * (@michaelgrosser)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-post-taxonomy-1/#post-4013225)
 * Hi,
    Just to confirm, are you trying to do this with my extended API plugin or
   are you using the native XML-RPC method to do this?
 * If you’re using my plugin, then you’d create a post with wp_create_post() and
   then use wp_set_post_terms() to assign the post to categories.
 * You may be able to use “tax_input” attribute from the create post method to accomplish
   the same thing. See this page in the codex: [http://codex.wordpress.org/Function_Reference/wp_insert_post](http://codex.wordpress.org/Function_Reference/wp_insert_post)
 * The format you’re using above seems to suggest that you’re trying to use the 
   native API method and not my plugin.

Viewing 1 replies (of 1 total)

The topic ‘custom post taxonomy’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/extended-xml-rpc-api.svg)
 * [Extended API](https://wordpress.org/plugins/extended-xml-rpc-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extended-xml-rpc-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extended-xml-rpc-api/)
 * [Active Topics](https://wordpress.org/support/plugin/extended-xml-rpc-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extended-xml-rpc-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extended-xml-rpc-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [michaelgrosser](https://wordpress.org/support/users/michaelgrosser/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/custom-post-taxonomy-1/#post-4013225)
 * Status: resolved