front end add category to new post
It looks like you’re trying to use the default Post post type’s Category taxonomy with your custom post type movies. $post_info = array( ‘post_type’ => ‘movies’, // custom post type here ‘post_status’ => ‘pending’, ‘post_title’ => esc_attr(strip_tags($_POST[‘title’])), ‘post_content’ => esc_attr(strip_tags($_POST[‘overview’])), ‘post_category’ => $category, // categories are by default only for Post post type ); Have … Read more