WordPress plugin intelligence profile

Permalink Shortcode

Provides a shortcode that allows you to insert permalinks into your content.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.5
Current version1.0.0
WordPress coverageTested up to WordPress 3.5
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update2 May 201313y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating4.0 / 5 from 4 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Permalink Shortcode version 1.0.0 as active, updated 13y ago and tested up to WordPress 3.5.

Overview

About this plugin

Permalink Shortcode is a relatively simple plugin that implements a shortcode that you can use to link to existing posts and pages on your site. The shortcode also supports a number of HTML attributes (see below).

While WordPress does include a feature that allows you to link to existing content, this feature only inserts a “static” link. If you were to change the slug for that post or page, previously inserted links would no longer be valid.

The permalink shortcode can be used in two forms:

  • Standard: <a href="[permalink wpid='123']">link text</a>
  • Enclosing: [permalink wpid="123"]link text[/permalink]

(Note the single quotes used in the standard form example above. )

Supported Attributes

The following attributes are available in both the shortcode’s standard form and its enclosing form:

  • wpid: The ID number of the post or page to which you want a link.
  • query: The part of a URL that comes after the ‘?’ (e.g. “?foo=bar”). The ‘?’ is optional and will be added automatically if not included.
  • fragment: The part of the URL that comes after the ‘#’ (e.g. “#comments”). The ‘#’ is optional and will be added automatically if not included.

The following HTML attributes are available only in the shortcode’s enclosing form:

  • accesskey
  • charset
  • class
  • dir
  • hreflang
  • id
  • lang
  • media
  • rel
  • rev
  • style
  • target
  • title
  • type

Things to be aware of with some of the above attributes:

  • In the enclosing form, the CSS class name permalink-shortcode is always added to the class attribute, even if you don’t specify any class names yourself.
  • In the enclosing form, if no value is given for the title attribute, the post or page title will be used.

Usage Examples

Simple link (standard form):

>

<a href="[permalink wpid='123']">link text</a>

Result:

>

com/hello-world/">link text</a>

Simple link (enclosing form):

>

[permalink wpid="123"]link text[/permalink]

Result:

>

">link text</a>

Linking to the Comments section of a post (standard form):

>

<a href="[permalink wpid='123']#comments">link text</a>

…or…

<a href="[permalink wpid='123' fragment='comments']">link text</a>

Result:

>

com/hello-world/#comments">link text</a>

Adding a custom CSS class and title (enclosing form):

>

[permalink wpid="123" class="my-class" title="Some Other Page"]link text[/permalink]

Result:

>

com/hello-world/" class="permalink-shortcode my-class" title="Some Other Page">link text</a>

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • permalink
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.5

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.5.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.5
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity2 May 201313y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.