{"id":1215,"date":"2015-06-01T15:55:45","date_gmt":"2015-06-01T14:55:45","guid":{"rendered":"http:\/\/schueler.ws\/?page_id=1215"},"modified":"2015-06-01T15:55:45","modified_gmt":"2015-06-01T14:55:45","slug":"wordpress-nextcellent-random-image-plugin","status":"publish","type":"page","link":"https:\/\/schueler.ws\/en\/projekte\/wordpress-nextcellent-random-image-plugin\/","title":{"rendered":"WordPress: &#8220;NextCellent Random Image&#8221; Plugin"},"content":{"rendered":"<p>The &#8220;NextCellent Random Image&#8221; (ngg-randomimage) Plugin adds to the Plugin NextCellent-Gallery or to NextGen-Gallery Version 1.x (NOT compatile with the recent version 2.x!) the following functions:<\/p>\n<ul>\n<li>A shortcode for displaying a random selected image from a Nextcellent (or Nextgen 1.x) gallery<\/li>\n<li>A Template for a &#8220;singlepic&#8221; from a NextCellent-Gallery with a caption from the picture properties (set in the gallery settings)<\/li>\n<\/ul>\n<p>The basis of both functions is the <code>[ singlepic ]<\/code> shortcode from NextCellent-Gallery.<\/p>\n<p>This plugin requires the plugin &#8220;NextCellent gallery&#8221; to be installed. NextCellent gallery is a fork of the Version 1 of the very popular Nextgen Gallery plugin. The recent version 2 of NextGen-Gallery is incompatible to the version 1 but NextCellent-gallery is a compatible successor. <\/p>\n<h2> Insert of a random picture from a gallery<\/h2>\n<p>The new short code <code>[ randomimage galleryid=65 w=600 ]<\/code> shows a random selected picture from the NextCellent-Gallery with the ID 65 with 600 pixel picture width. &#8220;galleryid&#8221; is a mandandory parameter, all others are optional. Mostly, it makes sense to define at least the picture width. <\/p>\n<p>The possible parameter of  <code> [ randomimage ]<\/code> are equal to <code>[ singlepic ]<\/code>, with the exception that &#8220;id&#8221; is replaced by &#8220;galleryid&#8221;.<\/p>\n<p>Hint: With template=caption randomimage shows a caption to the picture. More information are contained in the following section.<\/p>\n<h2>Singlepic or randomimage with captions<\/h2>\n<p>First, to add simply a caption to a singlepic, this plugin is not necessary, simply write<br \/>\n <code>[ singlepic id=387 w=600 ]<\/code> This is the caption. <code>[ \/singlepic ]<\/code>. <\/p>\n<p>ngg-randomimage adds a new template to the NextCellent-Gallery wich shows a singlepic with a caption, where the caption text is taken from the picture information  (&#8220;title text&#8221;) of the gallery settings. In the full screen view of the image (after clicking into it) the usually longer text from the description field is used. <\/p>\n<p><a href=\"http:\/\/schueler.ws\/wp-content\/uploads\/2011\/08\/gallerysample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/schueler.ws\/wp-content\/uploads\/2011\/08\/gallerysample.png\" alt=\"\" title=\"gallerysample\" width=\"582\" height=\"125\" class=\"alignnone size-full wp-image-328\" srcset=\"https:\/\/schueler.ws\/wp-content\/uploads\/2011\/08\/gallerysample.png 582w, https:\/\/schueler.ws\/wp-content\/uploads\/2011\/08\/gallerysample-300x64.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<p><code>[ singlepic id=2 w=320 h=240 float=none template=caption ]<\/code> gives the following result:<\/p>\nngg_shortcode_1_placeholder<p><em><font size=-1>Jahreswechsel 2010\/2011: Der Winter schl\u00e4gt richtig zu<\/font><\/em>&nbsp;<br><\/p>\n<h2>Set an own caption format<\/h2>\n<p>The default caption is set in an italic font and with a little bit smaller font size as the main text. With an additional line break the cation text is separated a little bit from the main text.<\/p>\n<p>Because this formatting may not fit everyones taste or every theme. So a settings dialog has been added to the plugin where the formatting of the caption can be changed.<\/p>\n<p>In the formatting string %1 is the place holder for the caption text. Please be carefull also to close all HTML tags.<\/p>\n<p>From the standard formatting <\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\"> \r\n&lt;em&gt;&lt;font size=-1&gt;%s &lt;\/font&gt;&lt;\/em&gt;&lt;br&gt;&amp;nbsp;&lt;br&gt;\r\n<\/pre>\n<p>the following code will produce a bold caption:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\"> \r\n&lt;strong&gt;%s &lt;\/strong&gt;&lt;br&gt;\r\n<\/pre>\n<h2> Download <\/h2>\n<p>The plugin can be installed from every WordPress installation using the plugin install function. If this is not possible, it can also be downloaded from the following link:<\/p>\n<a href=\"https:\/\/schueler.ws\/en\/?ddownload=1229\" title=\"Download\" rel=\"nofollow\" class=\"ddownload-button button-green id-1229 ext-zip\">Download<\/a>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The &#8220;NextCellent Random Image&#8221; (ngg-randomimage) Plugin adds to the Plugin NextCellent-Gallery or to NextGen-Gallery Version 1.x (NOT compatile with the recent version 2.x!) the following functions: A shortcode for displaying a random selected image from a Nextcellent (or Nextgen 1.x) &hellip; <a href=\"https:\/\/schueler.ws\/en\/projekte\/wordpress-nextcellent-random-image-plugin\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":150,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-1215","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/pages\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":10,"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/pages\/1215\/revisions"}],"predecessor-version":[{"id":1230,"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/pages\/1215\/revisions\/1230"}],"up":[{"embeddable":true,"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/pages\/150"}],"wp:attachment":[{"href":"https:\/\/schueler.ws\/en\/wp-json\/wp\/v2\/media?parent=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}