Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Embed Link ShortCode

This plugin adds a shortcode to get a similar functionality that has facebook when a link is pasted to the input status.

'Embed Link ShortCode' tries to emulate the functionality that facebook has when a link is pasted to the input status. But it doesn't happen when you paste a link in the body of a new post (as when you paste a youtube link in the visual view of a post), it's done using a shortcode. The provided link to the shortcode is fetched to get the meta tags, and these meta tags are used to render the new post content. It tries to get an image and put it as post default thumbnail, and it uses some meta tags to get title text and to add a quote. The order in the post content is: image, quote and link. If you don't like the HTML render, you can always edit the code to change format or suggest me some changes.


1- Create a new post.

2- Add only the shortcode with the link (in HTML mode, not Visual) in the post body. For example:


3- Push 'Save Draft'.

If all is ok, the post content will be rewritten with the rendered html code. An image may be uploaded to the media library and added as post default thumbnail. If nothing happens, click the preview link and some message may be displayed. Otherwise, it will be a bug: please, report it adding the URL you used and the plugin version (update to last version before report!).

4- Review the generated code.

Author Fermin Molina
Contributors nosuko
Tags embed, link, shortcode

This section describes how to install the plugin and to get it working:

  1. Upload and unzip to the /wp-content/plugins/ directory or use the standard Wordpress GUI way through the 'Plugins' menu to install the .zip file.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Enjoy the new shortcode!


  • Reverted internal changes introduced in versión 2.0. Now, it's more simple: only shortcode code is used, and the hook is removed when save the post and added just after to avoid annoying loops. I hope is the last internal big change.
  • Updated readme.
  • Tested in WP 4.7.


  • Changed internals: now, the shortcode is applied after the post is saved, not before (changed from hook 'content_save_pre' to 'save_post'). Also, the hook is removed and added when the post is saved to avoid annoying loops.
  • Detect ISO-8859-1 encoding and convert to UTF-8 to avoid some issues.


  • From WP 4.5 version, by default, the original plugin behaviour was restored (I don't know... maybe some internal changes, but I can not find them). So I modified the readme to reflect both behaviours in case of future WP changes.


  • After some testing months, and at same time WP 4.5, here is 1.0 version.


  • Tested with Wordpress 4.5.
  • The changes introduced in version 0.8 do not work properly, so the behaviour had to be modified.
  • Updated usage section to reflect plugin latest changes.


  • Tested and working in 4.4 version.
  • Add support for 'news_keywords' tag from meta web info.
  • From aprox Dec 1, 2015, shortcode doesn't get processed when "Save Draft" is pressed. Adding "content_save_pre" filter to get sure it gets processed.


  • Clean title and description strings from tags, html entities, etc.


  • Fix media title name generation for an image that must be inserted into library.


  • Implemented translation. Added tranlation to spanish.
  • Improved HTML render.
  • Improved documentation.
  • Some minor fixes.


  • Minor fixes.
  • Added better support to get a good title for the post.


  • Fixes in dirs to get correctly packed by wordpress plugin publication system.


  • Some minor fixes to readme.txt.


  • Some minor fixes.
  • Added error control after modify the post.


  • Initial version. Works fine.
  • Support to oEmbed will be added in a future version.

Why the post content (with the shortcode) is rewritten?

Because if that were not done in that way, everytime the post were loaded in the browser, the shortcode would be executed (recursion alike).


  1. The post format will be set to 'link' by default.
  2. The image (if any is found) will be added to the media library and set to post default thumbnail.
  3. The content post is rewritten when you save it.
Version 3.0

Requires WordPress version: 4.2 or higher

Compatible up to: 4.7.2

Last Updated 08 Dec 2016

Date Added: 04 Nov 2015

Plugin Homepage


0 stars
0 ratings


Not Enough Data

Works: 0
Broken: 0