wordpress wp_insert_post

来源:百度知道 编辑:UC知道 时间:2024/05/23 18:01:14
用wp_insert_post函数 发布的文章
html代码都会给转换掉, 请问怎样才能发布html代码文章.
使用wordpress api

我需要用代码发布一篇文章.文章的内容中有html标签

用wordpress提供的 wp_insert_post函数 提交文章时html标签会被过滤掉

我要写html标签,大哥们帮忙啊!!

说的啥?

说的一点都不清楚,怎么回答你

很遗憾,由于安全方面的考量,wp_insert_post()会过滤掉html标签,这个问题无法解决。

在后台有插入纯文本功能的~