Hola.
Bueno necesito de su ayuda con un problema que me urge solucionar lo mas pronto posible.
En mi blog agrego entradas remotamente con xmlrpc y queria prguntarles como puedo agregar taxonomias ya que mi blog tienen
por ejemplo categoria TV y dentro las taxonomias Infantil, Deportes, etc que se clasifican cada entrada que agrego
son como una categoria segundaria.
bueno y no veo la forma de clasificar mis entradas por ejemplo categoria TV y sub deportes mediande xmlrpc
<br />
$content = array(<br />
'title'=>$title,<br />
'description'=>$body,<br />
'mt_allow_comments'=>1,<br />
'mt_allow_pings'=>1,<br />
'post_type'=>'post',<br />
'mt_keywords'=>'tv en vivo,otros tags mas',<br />
'categories'=>array('TV')
como pueden observar con eso agrego las entradas pero necesitaria agregar las taxonomias para clasificar la entrada de categoria TV.
con esto con wp_insert_post() es mas lento que xmlrpc pero si hay una solución pues bienvenida sea!
$post = array(<br />
'comment_status' => 'open', // 'closed' means no comments.<br />
'ping_status' => 'open', // 'closed' means pingbacks or trackbacks turned off<br />
'post_author' => 1, //The user ID number of the author.<br />
'post_category' => array(6), //Add some categories.<br />
'post_content' => '[ the text of the post ]', //The full text of the post.<br />
'post_status' => 'publish',//Set the status of the new post.<br />
'post_title' => '[ the title ]', //The title of your post.<br />
'post_type' => 'post', //You may want to insert a regular post, page, link, a menu item or some custom post type<br />
'tags_input' => array("que es ",'esta vaina','etiquetas' ) // support for custom taxonomies.<br />
);<br />
wp_insert_post($post );
cerrado
no resuelto