• Greetings,

    This plugin does exactly what it is supposed to. Perfect. Well done.

    But I need to be able to add an extra line break between paragraphs before the wpautop function is called.

    The posts currently do not have this and so the entire post is converted to one big paragraph with BR tags when the paragraphs should end/begin.

    This is by design. As the documentation explains on the wpautop function.

    If you just added a filter above the wpautop, that would work. Then I could insert my own code as needed.

    I tested this out and it worked perfectly:

    Code:

    $post->post_content = str_replace(“\r\n”, “\n”, $post->post_content);
    $post->post_content = str_replace(“\n”, “\n\n”, $post->post_content);

    The result was properly formatted paragraph blocks.

    –RayJ

    • This topic was modified 1 year, 3 months ago by raywjohnson.
  • The topic ‘Feature Request: hooks’ is closed to new replies.