How do you get the unmodified post content?
It seems WordPress modifies the post content. It changes the HTML by adding or removing from it.
This post is different from this post:
Get WordPress post content by post id
How do you get the unmodified post content?
It seems WordPress modifies the post content. It changes the HTML by adding or removing from it.
This post is different from this post:
Get WordPress post content by post id
Share Improve this question edited Jun 20, 2020 at 20:27 1.21 gigawatts asked Jun 20, 2020 at 20:21 1.21 gigawatts1.21 gigawatts 1,0003 gold badges13 silver badges34 bronze badges1 Answer
Reset to default 0It seems that the original content is unmodified if I access it like this:
echo $post->post_content;
And I do not save the post in the editor and do not use the visual editor.
This is using WordPress 5.4.2.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742330826a4423683.html
评论列表(0条)