{"id":69539,"date":"2017-09-03T13:02:54","date_gmt":"2017-09-03T13:02:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-stupid-shortcode\/"},"modified":"2017-11-29T21:32:46","modified_gmt":"2017-11-29T21:32:46","slug":"simple-stupid-shortcode","status":"publish","type":"plugin","link":"https:\/\/ar.wordpress.org\/plugins\/simple-stupid-shortcode\/","author":15479704,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.1","stable_tag":"trunk","tested":"4.9.29","requires":"4.6","requires_php":"","requires_plugins":"","header_name":"Simple Stupid Shortcode","header_author":"Lorenz Cuno Klopfenstein","header_description":"The simplest way to embed images into Wordpress posts.","assets_banners_color":"","last_updated":"2017-11-29 21:32:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/LorenzCK\/SimpleStupidShortcode","header_author_uri":"https:\/\/github.com\/LorenzCK","rating":0,"author_block_rating":0,"active_installs":0,"downloads":8855,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.5.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1726455","resolution":"1","location":"assets"}},"screenshots":{"1":"<em>Shortcode<\/em> generation button with file picker."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[230,133,84,216,80],"plugin_category":[43,50,56],"plugin_contributors":[145857],"plugin_business_model":[],"class_list":["post-69539","plugin","type-plugin","status-publish","hentry","plugin_tags-embed","plugin_tags-image","plugin_tags-media","plugin_tags-picture","plugin_tags-shortcode","plugin_category-customization","plugin_category-media","plugin_category-social-and-sharing","plugin_contributors-lorenzck","plugin_committers-lorenzck"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-stupid-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-stupid-shortcode\/assets\/screenshot-1.png?rev=1726455","caption":"<em>Shortcode<\/em> generation button with file picker."}],"raw_content":"<!--section=description-->\n<p>The usual way to include images in Wordpress posts is to generate static anchor and <code>&lt;img&gt;<\/code> tags through the content editor interface. Similarly, links to other posts or pages of your blog are also generated as absolute <code>&lt;a&gt;<\/code> tags by the content editor.\nThese 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\u2019s title).<\/p>\n\n<p>No longer.\nWith this plug-in, you can use the simple <code>[image]<\/code>, <code>[link]<\/code>, and <code>[page]<\/code> shortcodes in any of your posts.<\/p>\n\n<h4>Image shortcode<\/h4>\n\n<p>Images are referenced by their ID, for instance:<\/p>\n\n<pre><code>[image id=\"123\"]\n<\/code><\/pre>\n\n<p>This <em>shortcode<\/em> will generate the following HTML structure:<\/p>\n\n<pre><code>&lt;div class=\"picture wp-image-123 size-medium\"&gt;\n  &lt;img src=\"path-to-123-medium.jpg\" srcset=\"\u2026\" \/&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<p>Images default to their <code>medium<\/code> size, if none is set.\nYou may easily add HTML classes or didascalies:<\/p>\n\n<pre><code>[image id=\"123\" didascaly=\"Nice picture.\" class=\"aligncenter\"]\n<\/code><\/pre>\n\n<p>This generates the following HTML block, which can be easily styled with some custom CSS:<\/p>\n\n<pre><code>&lt;div class=\"picture wp-image-123 size-medium aligncenter\"&gt;\n  &lt;img src=\"path-to-123-medium.jpg\" srcset=\"\u2026\" \/&gt;\n  &lt;div class=\"didascaly\"&gt;Nice picture.&lt;\/div&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<p>The <code>[image]<\/code> <em>shortcode<\/em> supports the following parameters:<\/p>\n\n<ul>\n<li><code>id<\/code>: the Wordpress ID of the attachment to include;<\/li>\n<li><code>size<\/code>: size of the image to include (can be any standard size such as <code>thumbnail<\/code>, <code>medium<\/code>, <code>full<\/code>, or any custom image size);<\/li>\n<li><code>alt<\/code>: alternate description to include in the <code>&lt;img&gt;<\/code> tag;<\/li>\n<li><code>title<\/code>: image title to use in (optional) link;<\/li>\n<li><code>link<\/code>: if set to <code>true<\/code>, <code>1<\/code>, <code>yes<\/code>, or an equivalent value, a link to the full-resolution attachment will be generated, otherwise a fully specified target URL can be specified;<\/li>\n<li><code>didascaly<\/code>: text to add as a didascaly;<\/li>\n<li><code>class<\/code>: additional HTML\/CSS classes to add to the root element.<\/li>\n<li><code>atts<\/code>: additional HTML attributes to add to the wrapping <code>&lt;div&gt;<\/code> tag.<\/li>\n<li><code>imgatts<\/code>: additional HTML attributes to add to the internal <code>&lt;img&gt;<\/code> tag of the image.<\/li>\n<\/ul>\n\n<h4>Page and link shortcodes<\/h4>\n\n<p>This couple of <em>shortcodes<\/em> automatically generate hypertext links to pages or posts of your Wordpress installation. Target posts can be referenced by ID, by <em>slug<\/em>, or by <em>path<\/em> (a post\u2019s URL, relative to the website\u2019s root).<\/p>\n\n<p>Thus, <code>[link href=\"123\"]\u2026[\/link]<\/code>, <code>[link href=\"slug-of-post\"]\u2026[\/link]<\/code>, and <code>[link href=\"root-page\/sub-page\/slug-of-page\"]\u2026[\/link]<\/code> are all equivalent.<\/p>\n\n<p>These <em>shortcodes<\/em> are \u201cenclosing\u201d (they wrap the content of the link, just like HTML tags) and they support the following parameters:<\/p>\n\n<ul>\n<li><code>href<\/code>: the ID, <em>slug<\/em>, or <em>path<\/em> of the target post or page;<\/li>\n<li><code>title<\/code>: the title to use in the link, if not set the target post\u2019s title will be used;<\/li>\n<li><code>class<\/code>: additional HTML\/CSS classes to add to the link;<\/li>\n<li><code>type<\/code>: type of the target post (defaults to \u201cpage\u201d for <code>[page]<\/code> and \u201cpost\u201d for <code>[link]<\/code>).<\/li>\n<\/ul>\n\n<p>If no link content to be enclosed is provided, the posts\u2019s title is automatically used as link text.<\/p>\n\n<!--section=changelog-->\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Add support for <code>atts<\/code> and <code>imgatts<\/code> attributes for <code>[image]<\/code> shortcodes.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Add support for URLs in <code>link<\/code> attributes for <code>[image]<\/code> shortcodes.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Add [page] and [link] shortcodes.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added localization support.<\/li>\n<li>Updated description and help.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added \u201cadd media\u201d button with file picker on content editor.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added <code>didascaly<\/code> and <code>class<\/code> parameters.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"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.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/69539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=69539"}],"author":[{"embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lorenzck"}],"wp:attachment":[{"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=69539"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=69539"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=69539"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=69539"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=69539"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=69539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}