• After importing all posts from my old wordpress installation all double line breaks in the posts have been replaced with single line breaks

    this has severely disrupted the formatting of the text, after importing, the text in the posts looks very squashed together as usually double line breaks would be converted to paragraph tags, but as they are now single line breaks they are interepreted as br tags instead.

    does anyone know of a way to fix this issue?

    both installations of wordpress are v4.9.6

Viewing 16 replies (of 16 total)
  • Thanks, @scott8035! I’ll give that a shot next time this comes up.

    For now, I found a StackExchange post that gave me a four-line snippet to put in functions.php:

    function codelight_content_export($content) {
     return wpautop($content);
    }
    add_filter('the_content_export', 'codelight_content_export', 999);

    Worked like a charm, near as I can tell.

Viewing 16 replies (of 16 total)
  • The topic ‘double line breaks changed to single line breaks after importing xml file’ is closed to new replies.