• Resolved bobulatorm

    (@bobulatorm)


    for reasons better known to myself, i just want to use wordpress as an admin backend (i’ll apache protect the whole dir), and then write my own code to extract the content for the users (very ugly, procedural code i can actually understand…)

    the only problem i’m having at the moment is that WP seems to be stripping out all my HTML <p> tags (which it them presumably re-adds later?)! is there anything i can fiddle with to stop it doing this?

    thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • A couple ways you can turn off WordPress’ auto-paragraphing:

    1. Locate and comment out this line in default-filters.php (wp-includes/ directory):

    add_filter('the_content', 'wpautop');

    2. https://dev.wp-plugins.org/wiki/TextControl

    Thread Starter bobulatorm

    (@bobulatorm)

    i’ve tried both of them and it still filters out my < p > tags.

    any other ideas? when i comment out clean_pre, it shows my < p > tags in the preview but theyre not in the database… weird?

    Thread Starter bobulatorm

    (@bobulatorm)

    ok, now i’ve commented out pretty much everything filter wise, and it’s still doing it. any ideas??

    I’m assuming when you’re looking at your post content (with the <p> tags, it’s while in WordPress, correct? Try switching editors (Users > Your Profile, Personal Options).

    Thread Starter bobulatorm

    (@bobulatorm)

    Yes, that sorted it, it was the rich text editor after all! everything is working splendidly now, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘keeping the illustrious paragraph tags?’ is closed to new replies.