Title: Post Link Shortcodes
Author: Evan Mattson
Published: <strong>August 27, 2013</strong>
Last modified: October 19, 2019

---

Search plugins

![](https://ps.w.org/post-link-shortcodes/assets/banner-772x250.jpg?rev=1196653)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/post-link-shortcodes/assets/icon-256x256.jpg?rev=1196653)

# Post Link Shortcodes

 By [Evan Mattson](https://profiles.wordpress.org/aaemnnosttv/)

[Download](https://downloads.wordpress.org/plugin/post-link-shortcodes.0.4.1.zip)

 * [Details](https://twd.wordpress.org/plugins/post-link-shortcodes/#description)
 * [Reviews](https://twd.wordpress.org/plugins/post-link-shortcodes/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/post-link-shortcodes/#installation)
 * [Development](https://twd.wordpress.org/plugins/post-link-shortcodes/#developers)

 [Support](https://wordpress.org/support/plugin/post-link-shortcodes/)

## Description

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](https://github.com/aaemnnosttv/post-link-shortcodes/wiki)**

### More

[Post Link Shortcodes on GitHub!](https://github.com/aaemnnosttv/Post-Link-Shortcodes)

## Screenshots

 * [[
 * 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.
 * [[
 * Attachment examples. Source shortcode, with html-escaped output in blue.

## Installation

 1. Upload the `post-link-shortcodes` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## Reviews

![](https://secure.gravatar.com/avatar/25e1a73961052a1fc288f15e37f698976e7799196390c0ac1ff54f4314aa1955?
s=60&d=retro&r=g)

### 󠀁[Great plugin, save time](https://wordpress.org/support/topic/great-plugin-save-time/)󠁿

 [betagoo](https://profiles.wordpress.org/betagoo/) July 13, 2017 1 reply

Great plugin, save time

![](https://secure.gravatar.com/avatar/42671dfa029a5b8a4ff1e9bff47a1e4b8b340ea3589485b06629a9b1512ce6c0?
s=60&d=retro&r=g)

 [Mike Zielonka](https://profiles.wordpress.org/mikezielonka/) September 3, 2016

Post Link Shortcodes makes it so much easier for users to create links.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/)

## Contributors & Developers

“Post Link Shortcodes” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

[Translate “Post Link Shortcodes” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-link-shortcodes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-link-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/post-link-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-link-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/post-link-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.4.1

 * FIXED: Unregistered `{type}_archive_url` shortcode

#### 0.4.0

 * NEW: `attachment_src` and `attachment_img` shortcodes
 * NEW: `{type}_src` and `{type}_img` shortcodes for types that support post thumbnails
 * NEW: added filters
 * Various improvements and optimizations under the hood
 * Added support for boolean html attributes

#### 0.3.1

 * Fix a bug where a shortcode would return data for the current page/post when 
   searching for a target post by a slug that does not or no longer exists.

#### 0.3

 * Aliases introduced

#### 0.2

 * Initial release!

## Meta

 *  Version **0.4.1**
 *  Last updated **6 years ago**
 *  Active installations **40+**
 *  WordPress version ** 3.6 or higher **
 *  Tested up to **5.2.24**
 *  Language
 * [English (US)](https://wordpress.org/plugins/post-link-shortcodes/)
 * Tags
 * [custom post type](https://twd.wordpress.org/plugins/tags/custom-post-type/)[post link](https://twd.wordpress.org/plugins/tags/post-link/)
   [post url](https://twd.wordpress.org/plugins/tags/post-url/)[shortcode](https://twd.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://twd.wordpress.org/plugins/post-link-shortcodes/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/)

## Contributors

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-link-shortcodes/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LRA4JZYALHX82)