WordPress.org

Support

Support » Plugins and Hacks » wp_insert_post remove the html tag

wp_insert_post remove the html tag

  • hi i want to put something like this in the “post_content” using wp_insert post,

    $postcontent = '<div id="xxxx">some text here</div><!--more--><div id="xxxx">some text here</div>';
    
    //using wp_insert_post
    ...
    $my_post['post_content'] = $postcontent;
    ...

    but it truns out wp_inser_post, strip all the html tags

    any solution for this? please….

Viewing 15 replies - 16 through 30 (of 33 total)
Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘wp_insert_post remove the html tag’ is closed to new replies.