Title: Heading exclude
Last modified: August 21, 2016

---

# Heading exclude

 *  Resolved [Xavier24](https://wordpress.org/support/users/xavier24/)
 * (@xavier24)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/)
 * Hi,
    is there a way to exclude linking to headings <h1><h2><h3>?

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

 *  Plugin Author [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * (@thedark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856780)
 * Hello.
 * Usually, the replacement engine should exclude words inside html tags ( except
   <p> tag ). Can I have a link to an example where the links are placed on words
   inside h tags ?
 *  Thread Starter [Xavier24](https://wordpress.org/support/users/xavier24/)
 * (@xavier24)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856783)
 * Here’s the link [http://www.kulturysta.com/kreatyna-zyciu-kulturysty/](http://www.kulturysta.com/kreatyna-zyciu-kulturysty/)
   the first word of the second paragraph, text “kreatyna” next to the icon with
   the number 2.
 * Code from post editor:
    `<h3><img class="alignnone size-full wp-image-574" style
   ="border: 0px !important;" alt="2" src="http://www.kulturysta.com/wp-content/
   uploads/2013/12/2.png" width="30" height="30" align="middle" />Kreatyna a przyrost
   wagi i wydalanie jej z moczem</h3>`
 * Code from page source:
    `<h3><img class="alignnone size-full wp-image-574" style
   ="border: 0px !important;" alt="2" src="http://www.kulturysta.com/wp-content/
   uploads/2013/12/2.png" width="30" height="30" align="middle"><a title="Kreatyna"
   class="aal" target="_blank" href="http://www.kulturystyka.sklep.pl/cat/1015/s_available/
   on/Kreatyna/">Kreatyna</a> a przyrost wagi i wydalanie jej z moczem</h3>`
 *  Plugin Author [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * (@thedark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856793)
 * Thank you for reporting this. I will look into this issue and I will give it 
   a fix. Will let you know when it is ready and tested so you can update.
 *  Plugin Author [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * (@thedark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856892)
 * Hello.
 * I have made a fix for your issue. Links should not appear inside h tags in content.
   Please update to the latest version 3.10.9 and let me know if it works well for
   you right now.
 *  Thread Starter [Xavier24](https://wordpress.org/support/users/xavier24/)
 * (@xavier24)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856896)
 * Hi
    Now seems work, thank u : )
 *  Plugin Author [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * (@thedark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/heading-exclude/#post-4856901)
 * Thank you for providing feedback.
 *  [EliteHR](https://wordpress.org/support/users/elitehr/)
 * (@elitehr)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/heading-exclude/#post-4856990)
 * Is their a quick change i can make so content within <h2> tags are updated with
   the links
 *  Plugin Author [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * (@thedark)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/heading-exclude/#post-4856992)
 * Hello.
 * On aal_engine.php , on line 99:
 * $reg = ‘/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))(?!(?:[^<\[]+[>\]]|[^>\]]+<\/h.>))\
   b($name)\b/ims’. $langsupport .’U’;
 * Change it to:
 * $reg = ‘/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))(?!(?:[^<\[]+[>\]]|[^>\]]))\b($name)\
   b/ims’. $langsupport .’U’;

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

The topic ‘Heading exclude’ is closed to new replies.

 * ![](https://ps.w.org/wp-auto-affiliate-links/assets/icon-128x128.jpg?rev=3342566)
 * [Auto Affiliate Links](https://wordpress.org/plugins/wp-auto-affiliate-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-auto-affiliate-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-auto-affiliate-links/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-auto-affiliate-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-auto-affiliate-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-auto-affiliate-links/reviews/)

## Tags

 * [exlcude](https://wordpress.org/support/topic-tag/exlcude/)
 * [H1](https://wordpress.org/support/topic-tag/h1/)
 * [heading](https://wordpress.org/support/topic-tag/heading/)

 * 8 replies
 * 3 participants
 * Last reply from: [Lucian Apostol](https://wordpress.org/support/users/thedark/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/heading-exclude/#post-4856992)
 * Status: resolved