Forums

[resolved] wpautop is NOT working (6 posts)

  1. Loststylus
    Member
    Posted 2 years ago #

    wpautop is just not working for me - i cannot get any generated paragraphs for double line breaks - everything returns in a single <p></p> (in the source code i can still see the unconverted linebreaks).

    The problem exists with any theme. I also tried to disable all plug-ins - it's still the same.

    Fearing for my sanity I also searched every single php file for any remove_filter - no luck.

  2. Loststylus
    Member
    Posted 2 years ago #

    Btw, I also tried to do smth like <?php wpautop(the_content())' ?> mannually - that doesn't work either.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Post a link to your site when it is using the default theme with no active plugins.

  4. Loststylus
    Member
    Posted 2 years ago #

    I cannot do that, unfortunately, because i'm running it locally, but I can try to provide some additional information.

  5. Loststylus
    Member
    Posted 2 years ago #

    Oh, wait a second... i must apologize. I actually had Anon Posting plugin activated (somehow i didn't notice that) - disabling it fixes the problem. I'll try to investigate it.

  6. Loststylus
    Member
    Posted 2 years ago #

    Replaced

    if(get_post_meta($this_post_id, 'anonPost', true) == 'true'){
    //...
    }
    else{
    		return get_the_content();
    	}

    with

    if(get_post_meta($this_post_id, 'anonPost', true) == 'true'){
    //...
    }
    else{
    		return wpautop(get_the_content());
    	}

    In Anon Post

    It works now, but i am not sure if it is the best option.

Topic Closed

This topic has been closed to new replies.

About this Topic