• I am using the wp_insert_post function and it removes the style=”..” element from the post content I send into it. Is there a workaround for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I am also facing the same problem 🙁
    I am creating posts through a php script and while using the function wp_insert_post if i am logged in at that time as admin it preserves the styple and javascript otherwise it removes everything i.e. if a guest will try to run that script it will remove all the javascript and styling. I guess i will have to authenticate somehow before using this wp_insert_post function. Any clue?

    Yes this happens for me as well…
    If anyones knows how to solve this problem please advice!

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_insert_post removes style element’ is closed to new replies.