I’m writing a plugin that allow me to write posts with something like markdown.
Two sort of data( Original markdown text and converted html ) are needed to stored in database.
markdown is in post_content_filtered.
converted html is in post_content.
markdown is in post_content.
converted html is in post_content_filtered.
I wonder which is better for that post_content_filtered designed to be used.
I’m looking for some plugins using post_content_filtered. I will refer how to treat post_content_filtered. Of course, any other adovice is helpful.
## markdown is in post_content_filtered.
My code stores markdown text written in default textarea editor to post_content_filtered.
But there are lots of point to hook I need to code.
For example, post_content_filtered will lost on scheduled post, bulk editing, rivision switching on default behavior of WordPress.
The markdown text is origianl. But WordPress exporter dosen’t export post_content_filtered.
## converted html is in post_content_filtered.
Since html is converted, post_content_filtered seems like right field to store the html.
So I’m considering to store the markdown to post_content.
But WordPress and most plugins expect html in the post_content.
I need to replace markdown with converted html just after retrieving posts data from database.
I don’t know how to do it on every retrieving.
For example, searching post is only from the post_content, and I can’t find any hook.
- The topic ‘How to treat post_content_filtered field’ is closed to new replies.