In my set up, I exploit one customized web page. Right here I put one textual content subject and the fck editor. That is for the title and the content material. I have to insert this right into a web page.
I exploit the next code
$my_post = array(
'post_title' => $_POST['title'],
'post_content' => $_POST['content'],
'post_type' => 'web page',
'post_status' => 'publish',
'post_author' => 1,
'menu_order' => 10,
);
// Insert the publish into the database
$post_ID = wp_insert_post( $my_post );
Within the content material subject, I insert the content material with some iframe
movies. The web page inserted efficiently, however the iframe tags are usually not up to date. They’re deleted whereas replace or insert the content material.