-
I am inserting posts via an android app , using wp_insert_post function
$post = array(
‘post_excerpt’ => “My_Test”,
‘comment_status’ => ‘open’,
‘post_content’ => $post_body,
‘post_name’ => $post_title,
‘post_status’ => ‘draft’,
‘post_title’ => $post_title,
‘post_type’ => ‘post’,
‘post_category’ => array(3634,154, $post_categories_array),
‘post_author’ => 1,
‘tags_input’ => $post_tags,
‘meta_input’ => array(
‘source’ => $source_name,
)
);
$post_id = wp_insert_post($post);My question is how can i insert title , description and other seo data with wp_insert_post
Thank you
The ticket ‘Inserting Post Using wp_insert_post. How to Fill Rank Math SEO Fields’ is closed to new replies.