The term_id and the term_taxonomy_id always the same?
-
I’m sorry, I speak a little English.
$x = wp_insert_term( 'Duper', 'category' ); // $x = array ( 'term_id'=> 692, 'term_taxonomy_id'=> 692 );
The term_id and the term_taxonomy_id always the same?
Which one should I use as a category ID?
Example:
wp_insert_post( array( 'post_category'=> array( $x [ 'term_id' ] ) ) ); // OR wp_insert_post( array( 'post_category'=> array( $x [ 'term_taxonomy_id' ] ) ) );
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘The term_id and the term_taxonomy_id always the same?’ is closed to new replies.