custom post type is not listing in wordpress object field
-
Hi There,
i have created a custom post type in wp_post by code. trying to map that custom post type in fieldmaps.
when i trigger below code, post record is created but wordpress object dropdown field is not showing this post type, also did a clear cache.
is there any option to check why is this happening to me? please suggest me.$post_args = array(
‘post_content’ => $surname,
‘post_type’ => ‘create-sp-post’,
‘post_excerpt’ => $sf_user_account_id,
‘post_title’ => $email,
‘post_author’ => $user_id,
‘post_name’ => $name,
‘post_status’ => ‘draft’,
‘post_content_filtered’ => true
);
$contact_id = wp_insert_post( $post_args );
- The topic ‘custom post type is not listing in wordpress object field’ is closed to new replies.