• When creating a post using an hr tag somewhere in it, I find that WordPress arbitrarily deletes the paragraph tag that starts below it. I always have to go back in and add the spacing below the hr tag every time I edit the post. Any ideas on what’s going on and how I can avoid the need to add that space in again every time I go to edit the post?

    here is the code as it should always be:

    <hr />
    <p><strong>Bolded Element:</strong> blah blah blah</p>

    but here is what it sometimes spits out:

    <hr /><strong>Bolded Element:</strong> blah blah blah

    This causes the text formatting to be all wrong for that paragraph since it’s stripped the paragraph tags out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have this same problem, it seems that in 2.7.1 maybe more, the visual is removing the “p” tag as you have stated above. I keep switching to the html version and manually input them all back in. I would also like the fix. But mine does it and I don’t use the “hr” tag at all.

    Hum,

    I have seem to have found a work around.

    Download this plugin “TinyMCE Advanced”.

    1. Click “Add New” from the Plugin Menu in 2.7.1
    2. In the Search Field type “TinyMCE Advanced”
    3. In the Results about 8 down, click install for the TinyMCE Advanced plugin and activate it.

    4. In the Setting Menu Click “TinyMCE Advanced”
    5. Near the bottom click the checkmark that states “Stop Removing the <p> and the
    tags when saving and show them in the HTML editor”

    6. Your done! You just need to review your pages and save them, you can now switch between visual and code without loosing your <p> tags..

    This was driving me nuts! I am glad that there was a fix for it.

    Thank you for this info, it was nice to find some good info for a fix that seemed really simple!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘paragraph and hr tag issue’ is closed to new replies.