I’m using the WP All Export plugin to create custom exports of my posts into CSV. However, none of the post content has

or
tags, it’s just white spaces. I need the tags because I’m importing into a different type of CMS that doesn’t treat white space as breaks.

I played around with adding and removing the following in functions.php:

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

But that only shows the tags within the WYSIWYG editor. The content in the database has white space. Is there a PHP function I can run on my export to include the P and BR tags on my content?

Read more here: How can I export WordPress post content into csv with <p> and <br>?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: