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'),
- The topic ‘custom post taxonomy’ is closed to new replies.