## wp_insert_post iframe missing

Question

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page.

I use the following code

$my_post = array( 'post_title' =>$_POST['title'],
'post_content'  => $_POST['content'], 'post_type' => 'page', 'post_status' => 'publish', 'post_author' => 1, 'menu_order' => 10, ); // Insert the post into the database$post_ID = wp_insert_post( \$my_post );


In the content field, I insert the content with some iframe videos. The page inserted successfully, but the iframe tags are not updated. They are deleted while update or insert the content.

0
4 months 2020-12-20T15:10:24-05:00 0 Answers 9 views 0