SEO Internal Link Shortcode

Internal links to posts, custom-type posts, pages, categories and tags with any HTML attribute(s).

Author:Steven Vachon (profile at wordpress.org)
WordPress version required:3.2
WordPress version tested:3.8
Plugin version:0.1.1
Added to WordPress repository:08-03-2013
Last updated:15-01-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:96
Rated by:6
Plugin URI:http://www.svachon.com/blog/seo-internal-link...
Total downloads:2 563
Active installs:200+
plugin download
Click to start download

This plugin allows you to create internal <a> links within your content that will not break when things get renamed or moved. While there are similar plugins available, they do not offer important SEO options.

You can add any HTML attribute to your link as long as it's prefixed with "attr_". And because it supports attributes that may not currently exist, it is future proof.

Examples:

  1. Link to a post/page by ID or slug
    • Shortcode: [link id="1234"/]
    • Shortcode: [link slug="post-slug"/]
    • Output: <a href="http://domain.com/post-slug/">Post Title</a>
  2. Link to a category by slug
    • Shortcode: [link cat="cat-slug"/]
    • Output: <a href="http://domain.com/cat-slug/">Category Name</a>
  3. Link to a tag by slug
    • Shortcode: [link tag="tag-slug"/]
    • Output: <a href="http://domain.com/tag-slug/">Tag Name</a>
  4. Custom text instead of retrieved title
    • Shortcode: [link id="1234"]custom text[/link]
    • Output: <a href="http://domain.com/post-slug/">custom text</a>
  5. Additional attributes for SEO/other
    • Shortcode: [link id="1234" attr_rel="something" attr_itemprop="specialty"/]
    • Output: <a href="http://domain.com/post-slug/" rel="something" itemprop="specialty">Post Title</a>

ChangeLog