{"id":35306,"date":"2015-03-23T21:42:47","date_gmt":"2015-03-23T21:42:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/random-gallery\/"},"modified":"2023-04-02T17:20:25","modified_gmt":"2023-04-02T17:20:25","slug":"random-gallery","status":"publish","type":"plugin","link":"https:\/\/wol.wordpress.org\/plugins\/random-gallery\/","author":14335466,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"00.08","stable_tag":"trunk","tested":"6.2.9","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Random Gallery Test","header_author":"David G","header_description":"","assets_banners_color":"706e5c","last_updated":"2023-04-02 17:20:25","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/randomgallery","header_plugin_uri":"","header_author_uri":"https:\/\/www.greenwold.com\/","rating":4.5,"author_block_rating":0,"active_installs":200,"downloads":6647,"num_ratings":11,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"00.01":{"tag":"00.01","author":"David Greenwold","date":"2015-04-27 19:33:49"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":2,"5":8},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1130541,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1130541,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1130434,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1130434,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["00.01"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[89,210,163,244,191042],"plugin_category":[50],"plugin_contributors":[195749],"plugin_business_model":[],"class_list":["post-35306","plugin","type-plugin","status-publish","hentry","plugin_tags-category","plugin_tags-gallery","plugin_tags-images","plugin_tags-random","plugin_tags-subset","plugin_category-media","plugin_contributors-david-g","plugin_committers-david-greenwold"],"banners":{"banner":"https:\/\/ps.w.org\/random-gallery\/assets\/banner-772x250.png?rev=1130434","banner_2x":"https:\/\/ps.w.org\/random-gallery\/assets\/banner-1544x500.png?rev=1130434","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/random-gallery\/assets\/icon-128x128.png?rev=1130541","icon_2x":"https:\/\/ps.w.org\/random-gallery\/assets\/icon-256x256.png?rev=1130541","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Random Gallery lets you display a different subset of your images every time your page is refreshed. Just tell it which ones you want it to pick from and how many you want to show at a time.<\/p>\n\n<h4>The Basics<\/h4>\n\n<p>Random Gallery works with an old fashioned shortcode. You specify the pool of images with the <code>ids<\/code> or <code>category<\/code> parameter. Then you specify how many you want to show with the <code>shownum<\/code> parameter.<\/p>\n\n<p>Here's an example of the <code>ids<\/code> method:<\/p>\n\n<pre><code>[random-gallery ids='101,102,103,104,105' shownum='3']\n<\/code><\/pre>\n\n<p>Note there are five images in the list but only three will be shown at a time.<\/p>\n\n<p>And here is an example of the <code>category<\/code> method:<\/p>\n\n<pre><code>[random-gallery category='myCategory' shownum='3']\n<\/code><\/pre>\n\n<p>Random Gallery can handle the ordinary Gallery shortcode parameters <code>columns<\/code>, <code>size<\/code>, and <code>link<\/code>:<\/p>\n\n<pre><code>[random-gallery category='myCategory' shownum='3' columns='1' size='medium' link='none']\n<\/code><\/pre>\n\n<p>You can put shortcodes in all kinds of blocks, but it's best to use the shortcode widget.<\/p>\n\n<h4>ids method details<\/h4>\n\n<p>The <code>ids<\/code> parameter is the list of images you want to draw from. To build up the list, you need the numbers that WordPress assigns to each of your images.<\/p>\n\n<p>There are plugins that let you see these numbers directly in the Media Library. Try searching the plugins directory for \"reveal ids\".<\/p>\n\n<p>Otherwise, you can find them manually:<\/p>\n\n<ul>\n<li>open up your Media Library<\/li>\n<li>click on a photo<\/li>\n<li>the Attachment Details will pop up<\/li>\n<li>the URL in your address bar will look like this: <code>https:\/\/www.example.com\/wp-admin\/upload.php?item=101<\/code><\/li>\n<li>take the number at the end of the URL (in this case 101) and add that number to <code>ids<\/code><\/li>\n<li>repeat this process for each photo you want to include<\/li>\n<\/ul>\n\n<h4>category method<\/h4>\n\n<p>By default, categories are not available in the Media Library. However, there are plugins that will enable them. Try searching the plugins directory for \"media library categories\".<\/p>\n\n<p>Once you have categories enabled, you can create a category, add images to it, and specify it in the shortcode by name.<\/p>\n\n<h3>Curly Quotes Issue<\/h3>\n\n<p>One tricky thing to watch out for is curly quotation marks. WordPress likes to replace straight quotes (<code>'<\/code>) with curly quotes ('). This is usually a good thing, but Random Gallery can only handle straight quotes.<\/p>\n\n<p>The easiest and best way to make sure you're only using straight quotes is to put your shortcode in a shortcode widget, then re-type all the quotes directly in the widget.<\/p>\n\n<h3>Thanks<\/h3>\n\n<p>I hope Random Gallery works for you. If you have any trouble, just shoot me an email. Thanks!<\/p>\n\n<!--section=installation-->\n<p>You can add Random Gallery directly from your WordPress dashboard Plugins page or you can download random-gallery.php and put it in the wp-content\/plugins\/ directory of your WordPress installation. Either way, make sure you activate it from the Plugins page.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20if%20i%20have%20a%20question%3F'><h3>What if I have a question?<\/h3><\/dt>\n<dd><p>I'd be happy to help!\n<a href=\"mailto:&#x72;&#x61;&#x6e;&#x64;&#x6f;&#x6d;&#x67;a&#108;&#108;&#101;&#114;&#121;&#064;&#103;&#x72;&#x65;&#x65;&#x6e;&#x77;&#x6f;l&#100;&#046;&#099;&#111;&#109;\">randomgallery@greenwold.com<\/a><\/p><\/dd>\n<dt id='what%20if%20i%20have%20a%20suggestion%3F'><h3>What if I have a suggestion?<\/h3><\/dt>\n<dd><p>That would be most welcome!\n<a href=\"mailto:&#x72;&#x61;&#x6e;&#x64;&#x6f;&#x6d;&#x67;a&#108;&#108;&#101;&#114;&#121;&#064;&#103;&#x72;&#x65;&#x65;&#x6e;&#x77;&#x6f;l&#100;&#046;&#099;&#111;&#109;\">randomgallery@greenwold.com<\/a><\/p><\/dd>\n<dt id='what%20if%20i%20find%20a%20bug%3F'><h3>What if I find a bug?<\/h3><\/dt>\n<dd><p>Please let me know right away!\n<a href=\"mailto:&#x72;&#x61;&#x6e;&#x64;&#x6f;&#x6d;&#x67;a&#108;&#108;&#101;&#114;&#121;&#064;&#103;&#x72;&#x65;&#x65;&#x6e;&#x77;&#x6f;l&#100;&#046;&#099;&#111;&#109;\">randomgallery@greenwold.com<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>00.08<\/h4>\n\n<p>Adds support for PHP 8. Drops support for Gallery shortcode parameter 'type'. Updates the readme and testing.<\/p>\n\n<h4>00.07<\/h4>\n\n<p>Bug fix: categories no longer limited to a shownum of 5. Updated the readme and testing.<\/p>\n\n<h4>00.06<\/h4>\n\n<p>Added support for categories. Added a donate link. Updated the readme and testing.<\/p>\n\n<h4>00.05<\/h4>\n\n<p>No change to the code. Just updated the readme and testing.<\/p>\n\n<h4>00.04<\/h4>\n\n<p>No change to the code. Just updated the readme and testing.<\/p>\n\n<h4>00.03<\/h4>\n\n<p>No change to the code. Just updated the readme and testing.<\/p>\n\n<h4>00.02<\/h4>\n\n<p>Added support for type, columns, size, and link.<\/p>\n\n<p>Miscellaneous code and documentation improvements.<\/p>\n\n<p>Fixed bug that was forcing the gallery to the top of the page.<\/p>\n\n<h4>00.01<\/h4>\n\n<p>Added header and comments.<\/p>\n\n<h4>00.00<\/h4>\n\n<p>Just the code. Made for and deployed on client's website.<\/p>","raw_excerpt":"Random Gallery displays a different subset of your images every time your page is refreshed.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35306"}],"author":[{"embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/david-greenwold"}],"wp:attachment":[{"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35306"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35306"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35306"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35306"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35306"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wol.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}