• Resolved loststylus

    (@loststylus)


    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter loststylus

    (@loststylus)

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

    esmi

    (@esmi)

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

    Thread Starter loststylus

    (@loststylus)

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

    Thread Starter loststylus

    (@loststylus)

    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.

    Thread Starter loststylus

    (@loststylus)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wpautop is NOT working’ is closed to new replies.