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