跳到内容

Post Link Shortcodes

v0.4.1

Evan Mattson · 2013年8月27日 上架

A collection of shortcodes for building links, images, or URLs to a given post/archive of any type.

正在使用
40+
评分
5.0 / 5
累计下载
3,921
最近更新
2019年10月20日
2 条评价需要 WordPress 3.6+已测试到 5.2.31

贡献者

截图

Basic usage. Source shortcode, with html-escaped output in blue.
Basic usage. Source shortcode, with html-escaped output in blue.
Post thumbnail usage. Works for any post type which supports post thumbnails as well as attachments. Source shortcode, with html-escaped output in blue.
Post thumbnail usage. Works for any post type which supports post thumbnails as well as attachments. Source shortcode, with html-escaped output in blue.
Attachment examples. Source shortcode, with html-escaped output in blue.
Attachment examples. Source shortcode, with html-escaped output in blue.

This plugin dynamically adds a collection of helpful shortcodes for each registered post type. These shortcodes can be used to return URLs, or generate HTML elements like anchors and images to the related post!

Each post type will have 2 shortcodes created for it where {type} is the name of the post type. Eg: post or page

[{type}_url]
[{type}_link]

If the post type was registered with has_archive, two more shortcodes will also be created:

[{type}_archive_url]
[{type}_archive_link]

NEW in 0.4.0:
If the post type supports thumbnail (featured images) two more shortcodes will also be created:
[{type}_src]
[{type}_img]

NEW in 0.4.0:
Attachment shortcodes
[attachment_src]
[attachment_img]

[post_src hello-world]
[post_img hello-world size=medium]

For more information and examples: Read the Documentation

More

Post Link Shortcodes on GitHub!

Plums

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

导航

说明

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

© 2026 Plums