Post added via wp_insert_post with category doesn’t show in category listing April 21, 2022 by Tarik Billa I think you have a typo mistake there line 3. the code could be like this 'post_content' => $postContent,