After wp_insert_post() custom post type does not show in the admin October 21, 2022 by Tarik Billa The problem was that the import script had post_status as ‘published’ not ‘publish’ hope this helps someone. :facepalm