Title: Why does WordPress do this?
Last modified: August 21, 2016

---

# Why does WordPress do this?

 *  [Philbeaux](https://wordpress.org/support/users/philbeaux/)
 * (@philbeaux)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/)
 * Just recently started using WordPress, and on the whole I’m very pleased with
   it.
    But there is one thing I’m finding very annoying. Wordpress will just arbitrarily
   change the code. The latest was just this morning. It wiped out a whole page 
   of links. Just removed the anchor code. Another thing that has happened is one
   particular page I have that has many unordered lists……. at least twice lately
   it will just turn the code inside out, wrap a
 *     ```
       <ul> around each
       <li>.
       Is there a way to stop this?</li>
       </ul>
       ```
   

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4672997)
 * Can you replicate this problem with all plugins disable using the twenty fourteen
   theme?
 *  Thread Starter [Philbeaux](https://wordpress.org/support/users/philbeaux/)
 * (@philbeaux)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673040)
 * Haven’t tried, and honestly, I’ve got to much into this theme to change over 
   just to see.
    I was just hoping someone was familiar with the problem and could
   give me some tips on how to handle it.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673051)
 * (In this thread) Can you re-post the sentence with the code that you tried to
   say in your first comment? Remember to wrap your code in backticks
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673077)
 * Normal debugging requires this
    - flushing any caching plugins you might be running, as well as server and/or
      browser caches.
    - deactivating all plugins (yes, all) to see if this resolves the problem. If
      this works, re-activate the plugins one by one until you find the problematic
      plugin(s).
       Sometimes, an apparently inactive plugin can still cause problems.
    - switching to the Twenty Fourteen theme to rule out any theme-specific problems.
 * All your theme info is stored in the database. Changing the theme momentarily
   should be no problem. You do it right from the dashboard, appearances.
 *  Thread Starter [Philbeaux](https://wordpress.org/support/users/philbeaux/)
 * (@philbeaux)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673083)
 * Ok, sorry I’ll try again. I think I figured out what a “backtick” is.
 * I had the following code:
 *     ```
       <ul><li>BLAH</li>
            <li>BLAH</li>
            <li>BLAH</li>
       </ul>
       ```
   
 * And it changed it to:
 *     ```
       <ul><li>BLAH</li></ul>
       <ul><li>BLAH</li></ul>
       <ul><li>BLAH</li></ul>
       ```
   
 * As far as the disappearing anchor text:
    This is the page: [Saints Yearbooks](http://www.nosaintshistory.com/new-orleans-saints-yearbooks/)
   Where it says 1968 Seasonal Highlights 1974 Seasonal Highlights 1984 Seasonal
   Highlights and so on. Each one of those was a link to another page. When I was
   in text view in the editor, Everything was OK, the links were there, but when
   I went to visual view, it’s like it just erased all the anchor code and left 
   it as `<h2>` tags.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673097)
 * > WordPress will just arbitrarily change the code. The latest was just this morning.
   > It wiped out a whole page of links. Just removed the anchor code.
 *  No, WordPress does not arbitrarily do anything but plugins, theme, etc. can 
   cause errors.
 * Your theme Responsive Pro, a non supported commercial theme, added its own text
   editor in Sep. 2013. From the change log, `Added WYSIWYG editor to theme option.`
   Are you using that option?
 *  Thread Starter [Philbeaux](https://wordpress.org/support/users/philbeaux/)
 * (@philbeaux)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673123)
 * No I am not.
    I use the text editor about 99% of the time. About the only time
   I use the WYSIWYG is for links.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673124)
 * Can you replicate the problem using the default Twenty Fourteen theme with **
   all** plugins deactivated?
 *  Thread Starter [Philbeaux](https://wordpress.org/support/users/philbeaux/)
 * (@philbeaux)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673126)
 * The problem isn’t constant.
    It’s intermittent. It has only happened a couple
   of times. I could try to do the 2014 thing later, but really, I’m kinda busy 
   at the moment.
 *  [mattbeck](https://wordpress.org/support/users/mattbeck/)
 * (@mattbeck)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673132)
 * Basically, WordPress filters the markup you put into the text editor, this can
   cause issues with raw markup you put in, especially when it contains line breaks.
 * The text editor isn’t really an HTML editor, it’s more like a .txt editor that
   allows you to use some tags.
 * The content you put in is still filtered. The text area doesn’t really behave
   all that differently from the tinymce editor.
 * You could try disabling the wpautop and wptexturize filters, but that isn’t without
   issues either – especially since you aren’t starting with a fresh site here; 
   other content you previously added likely relies on those filters to look right.
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673134)
 * To my knowledge, WordPress adds tags every now and then (such as `<P>` tags around
   paragraphs and other tags to make it valid) but it would never make a list with
   3 items into 3 lists with each 1 item.
 * Whether it’s constant, intermittent…..it’s not WordPress, but likely a theme 
   and/or plugin.
 *  [mattbeck](https://wordpress.org/support/users/mattbeck/)
 * (@mattbeck)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673135)
 * I’ve also noticed that switching back and forth between tinymce and the text 
   editor can cause some things to change, because content you put into the text
   editor gets parsed by TinyMCE when you switch to the visual editor.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673143)
 * > I’ve also noticed that switching back and forth between tinymce and the text
   > editor can cause some things to change
 * That’s a completely different and well documented issue. We recommend that you
   pick a tab and stick to it.
 *  [mattbeck](https://wordpress.org/support/users/mattbeck/)
 * (@mattbeck)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673146)
 * Yup, I know – but I don’t think it’s obvious.
 * We’ve had clients experience similar frustrations to the OP. Text vs. TinyMCE
   causes issues.
 * Similarly, wpautop is fine if you aren’t putting markup into the editor(s), but
   causes a lot of grief if you expect it to be unfiltered HTML you are entering.
 *  [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * (@webbrewers)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673184)
 * Looking specifically at one of the missing links, the link text isn’t within 
   the a tag:
 *     ```
       <a class="high" href="/1988.htm">
       <br></br></a>
       <p></p>
       <h2>
             1988 Seasonal Highlights
           </h2>
       ```
   
 * Are you pasting in the content or entering it directly?

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Why does WordPress do this?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 7 participants
 * Last reply from: [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/why-does-wordpress-do-this-1/#post-4673184)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
