{"id":11381,"date":"2010-12-03T22:14:08","date_gmt":"2010-12-03T22:14:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lorem-shortcode\/"},"modified":"2016-12-12T21:50:57","modified_gmt":"2016-12-12T21:50:57","slug":"lorem-shortcode","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/lorem-shortcode\/","author":3803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.3","stable_tag":"1.3.3","tested":"4.7.33","requires":"2.8.6","requires_php":"","requires_plugins":"","header_name":"lorem shortcode","header_author":"Per Soderlind","header_description":"","assets_banners_color":"fffffd","last_updated":"2016-12-12 21:50:57","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/soderlind.no\/donate\/","header_plugin_uri":"http:\/\/soderlind.no\/archives\/2010\/11\/17\/lorem-shortcode\/","header_author_uri":"http:\/\/www.soderlind.no","rating":5,"author_block_rating":0,"active_installs":100,"downloads":13398,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"487681","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1","1.3.0","1.3.1","1.3.2","1.3.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1461078","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1461078","resolution":"2","location":"assets"}},"screenshots":{"1":"Using Shortcode UI, insert <code>[lorem]<\/code> shortcode.","2":"Using Shortcode UI, edit existing <code>[lorem]<\/code> shortcode."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[41357,6529,1259,46917,80],"plugin_category":[43],"plugin_contributors":[78884],"plugin_business_model":[],"class_list":["post-11381","plugin","type-plugin","status-publish","hentry","plugin_tags-dummy-image","plugin_tags-dummy-text","plugin_tags-lorem-ipsum","plugin_tags-shortcake","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-pers","plugin_committers-pers"],"banners":{"banner":"https:\/\/ps.w.org\/lorem-shortcode\/assets\/banner-772x250.png?rev=487681","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lorem-shortcode_fffffd.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/lorem-shortcode\/assets\/screenshot-1.png?rev=1461078","caption":"Using Shortcode UI, insert <code>[lorem]<\/code> shortcode."},{"src":"https:\/\/ps.w.org\/lorem-shortcode\/assets\/screenshot-2.png?rev=1461078","caption":"Using Shortcode UI, edit existing <code>[lorem]<\/code> shortcode."}],"raw_content":"<!--section=description-->\n<p>The plugin contains two shortcodes, <code>[lorem]<\/code> and <code>[loremimage]<\/code>, the <code>[loremimage]<\/code> shortcode can be nested in the <code>[lorem]<\/code> shortcode. The shortcodes generates dummy text and image when needed.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Add the <code>[lorem]<\/code> and\/or <code>[loremimage]<\/code> shortcode to a post or page, or if the <a href=\"https:\/\/wordpress.org\/plugins\/shortcode-ui\/\">Shortcode UI<\/a> plugin is installed and activated, in the visual editor, click <code>Add Media-&gt;Insert Post Element-&gt;Lorem Ipsum<\/code> to add the shortcode.<\/p>\n\n<h4>Parameters, all are optional<\/h4>\n\n<p><strong>[lorem]<\/strong><\/p>\n\n<ul>\n<li>p=\"3\" Number of paragraphs. Default is 5<\/li>\n<li>l=\"7\", Number of lines per paragraph. Default is 3<\/li>\n<li>align=\"right\" This tells how you'd like to allign a nested shortcode. There are two alternatives, left or right. Default is right<\/li>\n<\/ul>\n\n<p><strong>[loremimage]<\/strong><\/p>\n\n<p>The loremimage is created using <a href=\"http:\/\/dummyimage.com\/\">http:\/\/dummyimage.com\/<\/a>, and hence the shortcode supports the same parameters as <a href=\"http:\/\/dummyimage.com\/\">http:\/\/dummyimage.com\/<\/a>.<\/p>\n\n<ul>\n<li>size=\"400x400\" Image size. Default is 300x200<\/li>\n<li>text=\"lorem ipsum\" Default is empty<\/li>\n<li>fgcolor=\"fff\" Image foreground color. Default is \"ccc\"<\/li>\n<li>bgcolor=\"ccc\" Image foreground color. Default is  \"eee\"<\/li>\n<li>format=\"png\", Image format. Default is \"png\"<\/li>\n<\/ul>\n\n<p>I've added two additional parameters\/values<\/p>\n\n<ul>\n<li>size=\"thumb\" This will create a thumbnail, size based on your WordPress image settings. The thumb links to another image and support Lightbox et al (has attribute <code>rel=\"lightbox[lorem]\"<\/code>).<\/li>\n<li>style=\"padding:5px;\" Adds a style to the loremimage. Default is empty<\/li>\n<\/ul>\n\n<h4>Example<\/h4>\n\n<pre><code>[lorem p=\"1\" l=\"20\"]\n    [loremimage size=\"300x300\" style=\"padding:5px;\"]\n[\/lorem]\n<\/code><\/pre>\n\n<p>For more information and screenshots, please see the <a href=\"http:\/\/soderlind.no\/archives\/2010\/11\/17\/lorem-shortcode\/\">plugin home page<\/a><\/p>\n\n<!--section=installation-->\n<h4>Requirement<\/h4>\n\n<ul>\n<li>PHP: 5.2.x or newer<\/li>\n<\/ul>\n\n<h4>Manual Installation<\/h4>\n\n<ul>\n<li>Upload the files to wp-content\/plugins\/lorem-shortcode\/<\/li>\n<li>Activate the plugin<\/li>\n<\/ul>\n\n<h4>Automatic Installation<\/h4>\n\n<ul>\n<li>On your WordPress blog, open the Dashboard<\/li>\n<li>Go to Plugins-&gt;Install New<\/li>\n<li>Search for \"lorem shortcode\"<\/li>\n<li>Click on install to install the lorem shortcode<\/li>\n<\/ul>\n\n<h4>Optional<\/h4>\n\n<p>Install the <a href=\"https:\/\/wordpress.org\/plugins\/shortcode-ui\/\">Shortcode UI<\/a> plugin and activate it.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Where's the Shortcode UI?<\/dt>\n<dd><p>You need to install the <a href=\"https:\/\/wordpress.org\/plugins\/shortcode-ui\/\">Shortcode UI<\/a> plugin. When the Shortcode UI plugin is installed and activated, in the visual editor, click <code>Add Media-&gt;Insert Post Element-&gt;Lorem Ipsum<\/code> to add the shortcode.<\/p><\/dd>\n<dt>What are shortcodes?<\/dt>\n<dd><p>Shortcode, a \"shortcut to code\", makes it easy to add funtionality to a page or post. When a page with a shortcode is saved, WordPress execute the linked code and embedds the output in the page.<\/p><\/dd>\n<dt>Writing your own shortcode plugin<\/dt>\n<dd><ul>\n<li><a href=\"http:\/\/www.smashingmagazine.com\/\">Smashing Magazine<\/a> has a nice (as allways) article about <a href=\"http:\/\/www.smashingmagazine.com\/2009\/02\/02\/mastering-wordpress-shortcodes\/\">Mastering WordPress shortcodes<\/a>. The article has several examples you can use as a starting point for writing your own.<\/li>\n<li>At codplex, you'll find the <a href=\"http:\/\/codex.wordpress.org\/Shortcode_API\">Shortcode API documented<\/a><\/li>\n<li>Also, feel free to use this plugin as a template for you own shortcode plugin<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Tested &amp; found compatible with WP 4.7.<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Fix bug in <code>rand()<\/code> max value<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Remove <code>extract()<\/code> <em>blush<\/em><\/li>\n<li>Tested &amp; found compatible with WP 4.6.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Update plugin to WPCS standards. Update Shortcode UI support.<\/li>\n<li>Remove old Shortcode UI files<\/li>\n<li>Add .pot language file<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Tested with 3.9, bumped version number<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added support for embedded shortcodes and added the [loremimage] short code. The [loremimage] can be used by itself. The image is created using <a href=\"http:\/\/dummyimage.com\/\">http:\/\/dummyimage.com\/<\/a><\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"The plugin contains two shortcodes, lorem and loremimage, the loremimage shortcode can be nested in the lorem shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11381"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pers"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11381"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11381"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11381"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11381"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11381"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}