Add Anchor Links


Creates anchor links to heading tags in the content of selected posts, just like Github does within the files.

Get involved and join Github!


  • Select post type where the anchor links will be added.
  • Disable CSS.


  • PHP 5.6 & PHP 7


  1. Follow the standard WordPress plugin installation procedere.
  2. When installed, go to Settings -> Add Anchor Links and when should be applied.


I want to use the latest files. How can I do this?

Use the GitHub Repo rather than the WordPress Plugin. Do as follows:

  1. If you haven’t already done: Install git

  2. In the console cd into Your ‘wp-content/plugins´ directory

  3. Type git clone or better type git fork

  4. If you want to update to the latest files (be careful, might be untested on Your WP-Version) type `git pull´.

I found a bug. Where should I post it?

I personally prefer GitHub, to keep things straight. The plugin code is here: GitHub
But you may use the WordPress Forum as well.

I found a bug and fixed it. How can I contribute?

Either post it on GitHub or—if you are working on a cloned repository—send me a pull request.


March 16, 2020
Thanks for this! It works exactly as described, adding id values to headings and showing an anchor item. Right-clicking allows users to capture a link to an exact section.
Read all 2 reviews

Contributors & Developers

“Add Anchor Links” is open source software. The following people have contributed to this plugin.


“Add Anchor Links” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Add Anchor Links” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


1.0.2 (2020-01-13)

  • Fix: Fix link position when header has attributes (PR#1 by @a-mt)

1.0.1 (2018-02-12)

  • Fix: Few typos in readme files.
  • Fix: Post types error.
  • Added: Notice about settings shown on plugin activation.
  • Added: Constant ADD_ANCHOR_LINKS_DONT_LOAD_CSS (see Github).
  • Added: Banner & icon image to the WP repository (by Dušan Konečný).

1.0.0 (2018-02-08)

  • Initial release