WordPress plugin intelligence profile

Simple Permalink

This plugin retrieves the permalink URL for a page or post based on the ID with the shortcode [permalink].

WP PlugIndex snapshot

Current directory snapshot

Tested up to not listed
Current version1.0.1
WordPress coverageTested up to not listed
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update19 Apr 201313y ago
Active installations20Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 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 Simple Permalink version 1.0.1 as active, updated 13y ago and without a listed Tested up to version.

Overview

About this plugin

This plugin retrieves the permalink URL for a page or post based on the ID with the shortcode [permalink].

What’s the point of this plugin?

In creating my own sites with WordPress, I started noticing that I like to link to articles within other articles. Then I’m always changing my mind about stuff, messing around with page/post slugs, and screwing with my permalinks. It’s very annoying to then have to go back and change links wherever I placed them.

This plugin is pretty simple. It just retrieves the URL of a page or post based on WordPress’s unique, numerical ID for it, which never changes. For me personally, using the [permalink] shortcode every time I link to another page or post within my site makes life easier because I don’t have to worry about the URL changing.

Also, when I move my site from my local dev server to the live web server, I don’t have to worry about any of these links.

Anyways, I thought what the heck, why not share? — I keep pasting this code snippet in all my personal website themes anyway.

However, keep in mind this plugin will be more useful for people like me who are always working under the HTML tab when editing pages and posts. If you’re looking for a similar shortcode that constructs the entire HTML link for you, check out this plugin by Justin Tadlock.

Usage Examples

Since all this plugin does is retrieve the URL to the post or page, you need to format a standard HTML link in whatever way you normally would. Then, instead manually writing in the post or page’s URL, you retrieve it with the [permalink] shortcode. Inside, you reference the WordPress’s numeric ID for the post or page.

<a href="[permalink id="123"]">Your Text</a>

<a href="[permalink id="123"]" title="Your Link Title">Your Text</a>

<a href="[permalink id="123"]#some_section_of_page">Your Text</a>

Extended Usage Examples

1, I added the optional feature to allow you to use a page’s slug to reference the permalink you’re trying to retrieve.

<a href="[permalink slug="your-page"]">Your Text</a>

If you’re referencing anything other than a page, you need to specify the post type with the optional “post_type” parameter.

<a href="[permalink slug="your-post" post_type="post"]">Your Text</a>

If you can use the Post ID, it will consume less resources on your server to retrieve the permalinks that way.

So why use the slug at all? Why not just always use the ID? Well personally, I added this in for myself.

When I setup demo websites for my WordPress themes, I’m always importing many of the same pages that innerlink with eachother. As you know, when importing pages and posts between different websites, ID’s will generally change. By using this shortcode and referencing page/post slugs, I can keep URL’s intact when I’m importing/exporting pages to different websites.

WordPress.org metadata

Plugin tags

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

  • permalink
  • themeblvd
  • url
Compatibility & maintenance

Compatibility & maintenance

Tested up to not listed

WordPress.org does not currently provide a Tested up to version that WP PlugIndex can compare with WordPress 7.1.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up toNot listed
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity19 Apr 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.