Add post term

wp_set_object_terms($post->ID,$brand_name,'brand');
$the_terms = wp_get_object_terms( $post->ID, 'brand' );

0 Comments

You must be logged in to post a comment.