跳到内容

The Permalinker

v1.9.0

Andy Stratton · 2009年6月30日 上架

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 …

正在使用
100+
评分
5.0 / 5
累计下载
1.3 万
最近更新
2024年12月14日
2 条评价需要 WordPress 2.6+已测试到 6.4.15

贡献者

截图

Content with short codes.
Content with short codes.
The dynamic output.
The dynamic output.
Markup.
Markup.

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.

<a href="[permalink]">;This post.</a>;

Example 3: Template Directory URI

<img src="[template_uri]/photos/me_grandma.jpg" alt="A Photo of Me and My Grandma" />

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums