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.

Post Link Shortcodes


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


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


NEW in 0.4.0:
If the post type supports thumbnail (featured images) two more shortcodes will also be created:

NEW in 0.4.0:
Attachment shortcodes

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

For more information and examples: Read the Documentation


Post Link Shortcodes on GitHub!


  • 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.


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


September 3, 2016
Post Link Shortcodes makes it so much easier for users to create links.
Read all 2 reviews

Contributors & Developers

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


Translate “Post Link Shortcodes” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • FIXED: Unregistered {type}_archive_url shortcode


  • 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


  • 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.


  • Aliases introduced


  • Initial release!