• Resolved birgereelen

    (@birgereelen)


    Hi,

    We host a large number of WordPress websites.
    Since the update to WordPress version 4.7 no automatic paragraphs, breaks etc. are added.
    Basically, all text is ‘glued’ together.

    In the editor all text shows up fine, but when previewing the page, no <p>, <br /> etc. are added.

    My first guess is that wpautop is somehow not added to the the_content() function.

    As a test I tried echoing the content using:

    $content = get_the_content();
    $content = apply_filters( ‘the_content’, $content );

    echo wpautop( $content );

    Then, the paragraphs are added correctly.

    Is this a new / know bug / problem?

    Thanks for your swift reply.
    With kind regards,
    Birger

Viewing 6 replies - 1 through 6 (of 6 total)
  • Alex

    (@hempsworth)

    Hi Birger,

    Sorry to hear that this is affecting your sites since the upgrade. I can’t seem to reproduce the bug on my 4.7 install. I just want to check first, have you tried the steps in this post?

    https://www.ads-software.com/support/topic/read-this-first-wordpress-4-7-master-list/

    If you have tried all of those steps, we can keep digging. Thanks!

    Thread Starter birgereelen

    (@birgereelen)

    Hello,

    For several of our websites we did completed the ‘checklist’, manually disabled all plugins, cleared caches etc.

    We also noticed some other plugins (NextGen gallery) is not working like it should.
    In stead of showing the gallery, it shows ‘Click to edit’.
    It seems to me soms filters are not triggered when calling the_content().

    Thread Starter birgereelen

    (@birgereelen)

    An example of a website with this specific problem is:

    https://www.stiemerheide.be/omgeving/

    I did add the following code to make sure paragraphs and alignment is set correctly:

    // the_content(); // old code
    $content = apply_filters( ‘the_content’, $content );
    $content = do_shortcode( $content );
    echo wpautop( $content );

    Thread Starter birgereelen

    (@birgereelen)

    I managed to pin-point the exact problem.

    The plugin NextGen Gallery (undoubtly the worst plugin ever made) caused the problem.
    Only after updating to the most recent version solved the problem.

    Sadly enough this gave loads of other -non-related- problems we have to solve.

    With kind regards.

    Alex

    (@hempsworth)

    One of the steps in the checklist is to upgrade all plugins and themes ??

    But I’m sorry that NetGen Gallery is now causing you more problems! If it helps at all, their support forum is located here: https://www.ads-software.com/support/plugin/nextgen-gallery

    Hopefully fixes should be forthcoming from the developers.

    Thread Starter birgereelen

    (@birgereelen)

    You are right, updating plugins is a step of the checklist.

    Bad experiences in mind, we are always very cautious about everything concerning NextGen.
    That’s why we never use this plugin again in new projects.

    We do know the link of the support forum, but praying or running away is a faster and better sollution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP4.7 – wpautop is not working after update’ is closed to new replies.