Hi,
I have a loop that creates about 100 pages. I would like to set a cornerstone template or some content and then to be able to edit the page in cornerstone.
My loop looks like that:
$new_post = array(
'post_title' => wp_strip_all_tags(remove_accents(trim($row["nom_srubrique"]))),
'post_content' => '',
'post_status' => $postStatus,
'post_author' => $userID,
'post_type' => $postType,
'post_parent' => $arrayIds[$pos]
);
$post_id = wp_insert_post($new_post);
The post_content field is empty since I don’t know how to inset a cornerstone template in here.
Can you help?
Thanks