SEO Internal Link Shortcode
v0.1.1Steven Vachon · 2013年3月8日 上架
Internal links to posts, custom-type posts, pages, categories and tags with any HTML attribute(s).
- 正在使用
- 60+
- 评分
- 4.8 / 5
- 累计下载
- 5,191
- 最近更新
- 2014年1月15日
6 条评价需要 WordPress 3.2+已测试到 3.7.41
贡献者
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:
- 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>
- Shortcode:
- Link to a category by slug
- Shortcode:
[link cat="cat-slug"/] - Output:
<a href="http://domain.com/cat-slug/">Category Name</a>
- Shortcode:
- Link to a tag by slug
- Shortcode:
[link tag="tag-slug"/] - Output:
<a href="http://domain.com/tag-slug/">Tag Name</a>
- Shortcode:
- Custom text instead of retrieved title
- Shortcode:
[link id="1234"]custom text[/link] - Output:
<a href="http://domain.com/post-slug/">custom text</a>
- Shortcode:
- 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>
- Shortcode: