WordPress plugin intelligence profile

Simple Stupid Shortcode

The simplest and most flexible way to embed images or put internal links in Wordpress. Shortcodes to finally ditch all absolute paths and fixed sizes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.9
Current version1.5.1
WordPress coverageTested up to WordPress 4.9
Minimum stackWP 4.6 · PHP —
Directory statusactive
Last directory update29 Nov 20178y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Simple Stupid Shortcode version 1.5.1 as active, updated 8y ago and tested up to WordPress 4.9.

Overview

About this plugin

The usual way to include images in WordPress posts is to generate static anchor and <img> tags through the content editor interface. Similarly, links to other posts or pages of your blog are also generated as absolute <a> tags by the content editor.

These kind of fixed links make your WordPress site hard to migrate and make it especially hard to automatically change your output markup (for instance if you decide to change the image size or change a post’s title).

No longer.

With this plug-in, you can use the simple [image], [link], and [page] shortcodes in any of your posts.

Image shortcode

Images are referenced by their ID, for instance:

[image id="123"]

This shortcode will generate the following HTML structure:

jpg" srcset="…" /> </div>

Images default to their medium size, if none is set.

You may easily add HTML classes or didascalies:

" class="aligncenter"]

This generates the following HTML block, which can be easily styled with some custom CSS:

</div> </div>

The [image] shortcode supports the following parameters:

  • id: the WordPress ID of the attachment to include;
  • size: size of the image to include (can be any standard size such as thumbnail, medium, full, or any custom image size);
  • alt: alternate description to include in the <img> tag;
  • title: image title to use in (optional) link;
  • link: if set to true, 1, yes, or an equivalent value, a link to the full-resolution attachment will be generated, otherwise a fully specified target URL can be specified;
  • didascaly: text to add as a didascaly;
  • class: additional HTML/CSS classes to add to the root element.
  • atts: additional HTML attributes to add to the wrapping <div> tag.
  • imgatts: additional HTML attributes to add to the internal <img> tag of the image.

Page and link shortcodes

This couple of shortcodes automatically generate hypertext links to pages or posts of your WordPress installation. Target posts can be referenced by ID, by slug, or by path (a post’s URL, relative to the website’s root).

Thus, [link href="123"]…[/link], [link href="slug-of-post"]…[/link], and [link href="root-page/sub-page/slug-of-page"]…[/link] are all equivalent.

These shortcodes are “enclosing” (they wrap the content of the link, just like HTML tags) and they support the following parameters:

  • href: the ID, slug, or path of the target post or page;
  • title: the title to use in the link, if not set the target post’s title will be used;
  • class: additional HTML/CSS classes to add to the link;
  • type: type of the target post (defaults to “page” for [page] and “post” for [link] ).

If no link content to be enclosed is provided, the posts’s title is automatically used as link text.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • embed
  • image
  • media
  • picture
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.9
Minimum requirementsWordPress 4.6 · PHP not listed
Update activity29 Nov 20178y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.