Title: Heading Tags Generating Weird Code
Last modified: August 21, 2016

---

# Heading Tags Generating Weird Code

 *  [slateb](https://wordpress.org/support/users/slateb/)
 * (@slateb)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/heading-tags-generating-weird-code/)
 * My heading tags (h1, h2, h3, etc…) are generating some weird output when the 
   pages are published.
 * This is what I’m getting:
 *     ```
       <p>Bacon ipsum dolor sit amet boudin meatloaf pork belly salami shoulder rump sausage jowl chicken. Bresaola spare ribs drumstick chicken pork chop doner cow rump. Tongue tail turducken boudin. Pork belly kielbasa doner drumstick. Frankfurter swine shank tenderloin, pancetta pork chop corned beef boudin tri-tip rump shankle brisket sausage strip steak flank.<br>
       <a name="heading-two"></a><br>
       </p>
       <h2>Heading Two</h2>
       ```
   
 * Before all the heading tags tags and this weird `<a>` is getting inserted. There
   is nothing in the visual or html editor that shows this.
 * I’ve already added the following filters to my functions file
 *     ```
       remove_filter( 'the_content', 'wpautop' );
       remove_filter( 'the_excerpt', 'wpautop' );
       ```
   
 * any ideas???

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

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/heading-tags-generating-weird-code/#post-4047084)
 * What theme are you using? Where did you download it from?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/heading-tags-generating-weird-code/#post-4047114)
 * does this also happen if you temporarily deactivate all plugins?
    and if you 
   temporarily switch to the default theme (Twenty Thirteen or Twenty Twelve)?

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

The topic ‘Heading Tags Generating Weird Code’ is closed to new replies.

## Tags

 * ["p tags"](https://wordpress.org/support/topic-tag/p-tags/)
 * [br tags](https://wordpress.org/support/topic-tag/br-tags/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)
 * [wpautop](https://wordpress.org/support/topic-tag/wpautop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/heading-tags-generating-weird-code/#post-4047114)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
