Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从较旧的 wordpress 导入 200 篇文章,内容中有很多视觉作曲家简码。
有什么方法可以删除所有短代码并保存内容?
以编程方式,这可以通过激活视觉作曲家并重新保存的内容来完成,如下所示:
for each all posts post->post_content = do_shortcode(post->post_content) save(post) endforeach
我的意思是 - 需要渲染所有短代码以获取 HTML 并将其保存为新的帖子内容。这将允许“剥离”所有短代码,但保存使用可视化作曲家生成的标记。但请注意,您将需要手动将样式/css 排入视觉作曲家元素的队列中。