Home Plugins the permalinker
The Permalinker logo

The Permalinker

by Andy Stratton on WordPress.org

Use short codes to dynamically link to your WordPress pages and posts. All you need is the ID. This can come in handy when developing content for Word …

(2)
Content with short codes.

Content with short codes.

Use short codes to dynamically link to your WordPress pages and posts. All you need is the ID. This can come in handy when developing content for WordPress sites. Makes for a cleaner migration with no need to manipulate content when moving from one subdirectory or domain to another.

Attributes of append class, rel, and target are supported within the [permalink] opening tag. See FAQs. You can insert the token %post_title% to dynamically insert the post’s title into anchor text (content between the opening and closing shortcode).

A short code for [template_uri] exists if you’d like to dynamically grab the full URL to your current template directory (useful for adding images and other resources bundled in a template via the page/post editor).

Example 1: Create link.

[permalink id=2 rel="internal"]Check out my latest post named %post_title%[/permalink] or use `[permalink]this link[/permalink]` to link to this post.

Example 2: Output Permalink URL.

;This post.;

Example 3: Template Directory URI

A Photo of Me and My Grandma
Active installations200+
Weekly downloads
23+27.78%
Version1.9.0
Last updated12/13/2024
WordPress version2.6
Tested up to6.4.5
Tags
developmentlinkingmigrationpermalinksstaging