My custom post type has 5 custom meta boxes which use wp_editor. Visually I can format the content but when saved, all the formatting is gone.

For example I made a portion of my content bold, but when I save / update, the formatting is no longer there both in front end and back end (when I go back to edit the same post).

What is the right way to do this?

  • 1
    Maybe your save function strips the HTML tags. What's your metabox code? – Sally CJ Sep 12 '19 at 12:56
  • 1
    You nailed it!! :) – Subrata Sarkar Sep 13 '19 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.