WordPress.org

Forums

Give us back our breaks! (11 posts)

  1. Arlo
    Member
    Posted 10 years ago #

    I was suprised to discover today that WP doesn't recognize either multiple line breaks, or even hand-entering <br />

    This is just silly. One should have 100% absolute control over the formatting of posts, which I was used to with MT.

    So-- please in the next release let posts recognize multiple carriage returns AND <br /> (and whatever other formatting codes that might be supressed).

    Thanks.

  2. Kafkaesqui

    Posted 10 years ago #

    Uh, what plugins do you have active?

  3. satoshi
    Member
    Posted 10 years ago #

    Break tags work fine for me. Check your plugins, as Kafka said, and... I can't think of anything else. Hm.

  4. Arlo
    Member
    Posted 10 years ago #

    Ok- egg on my face, I turned on Markdown, I can do it now.

    STILL, It requires manual break tags, you can't just hit return 3 times and get 3 breaks.

  5. Nick Momrik
    Member
    Posted 10 years ago #

    You can disable wp-autop.

  6. iand
    Member
    Posted 10 years ago #

    MtDewVirus - that plugin in almost what I am after to solve a problem I have. How would I modify it to work only on a single category? (I tried but could only get errors).

  7. Nick Momrik
    Member
    Posted 10 years ago #

    Hmm...I have no idea if this will work, but you could try this:
    Open the plugin and change the code to this...

    if (in_category(#)) {
    remove_filter('the_content', 'wpautop');
    remove_filter('the_excerpt', 'wpautop');
    }

    Change the # to the category ID.

    Worth a try I guess.

  8. iand
    Member
    Posted 10 years ago #

    Thats what I can up with after I posted. It throws up the following errors above the admin panel:

    Warning: Invalid argument supplied for foreach() in /home/thewayt/public_html/blog/wp-includes/template-functions-category.php on line 400

    (and line 404), and:

    Warning: Cannot modify header information - headers already sent by (output started at /home/thewayt/public_html/blog/wp-includes/template-functions-category.php:400) in /home/thewayt/public_html/blog/wp-admin/admin.php on line 6

    (and lines 7, 8 and 9).

  9. Nick Momrik
    Member
    Posted 10 years ago #

    That's kind of what I figured. :-/

  10. NekoFever
    Member
    Posted 10 years ago #

    I'm having the same problems with it not recognising multiple line breaks or manual ones, and I don't have any plugins enabled. Does anyone know how can I fix this?

  11. Nick Momrik
    Member
    Posted 10 years ago #

    Add the plugin and enable it. That way you'll take it out of WP's hands and you can set up your own paragraphs and line breaks how you want them in your post.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.