Plugin Directory

Changeset 2067700


Ignore:
Timestamp:
04/12/2019 08:59:01 AM (7 years ago)
Author:
David Greenwold
Message:

No change to the code. Just updated the howto and testing.

Location:
random-gallery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • random-gallery/trunk/random-gallery.php

    r1281737 r2067700  
    1313Author URI: http://www.greenwold.com/web-projects/#random-gallery
    1414
    15 Version: 00.02
     15Version: 00.03
    1616
    1717*/
  • random-gallery/trunk/readme.txt

    r1304477 r2067700  
    11=== Random Gallery ===
    22Contributors: David Greenwold
    3 Donate link: http://www.greenwold.com/web-projects/#random-gallery
     3Donate link: http://www.greenwold.com/
    44Tags: gallery, tiled, random, truncate, list, media, pictures, photos
    55Requires at least: 3.0.1
    6 Tested up to: 4.4
    7 Stable tag: 00.02
     6Tested up to: 5.1.1
     7Stable tag: 00.03
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Display a random selection of photos from an arbitrarily large list.
     11Display a random selection of photos from a list.
    1212
    1313== Description ==
     
    1515Give Random Gallery a list of photos and a number. It will pick that number of photos randomly from your list and send them off to a normal gallery. It works great with Jetpack's Tiled Galleries.
    1616
    17 The easiest way to use Random Gallery is to insert a normal gallery into your page. Be sure to select all of the photos you want Random Gallery to draw from. In the editor, you'll see something like this:
    18 
    19 [gallery ids="1,2,3,5,8,13,21"]
    20 
    21 Then, all you have to do is change "gallery" to "random-gallery" and add shownum to the end, like this:
     17Random Gallery works with an old fashioned shortcode, like this:
    2218
    2319[random-gallery ids="1,2,3,5,8,13,21" shownum="3"]
    2420
    25 You can also use the standard WP Gallery options: type, columns, size, and link.
     21You can insert the shortcode into a text block or an html block. "ids" is the list of photos you want to draw from. "shownum" is the number of photos you actually want to show at any given time. In the example above, there are seven photos in the list but only three will be shown at a time.
    2622
    27 In this example, there are seven photos in the list, but only three will be shown at a time.
     23To build your ids / list of photos, open up your Media Library and click on a photo. The "Attachment Details" will pop up. Take a look at your address bar. The url will end with "item=NUMBER". Add that number to your shortcode ids and move on to the next photo that you'd like to include.
     24
     25Note that you can pass some of the normal Gallery shortcode options into the Random Gallery shortcode. These options are type, columns, size, and link.
    2826
    2927There's nothing too fancy under the hood, so Random Gallery is pretty much future proof. Check it out and let me know what you think. Thanks!
     
    3129== Installation ==
    3230
    33 Drop random-gallery.php in the wp-content/plugins/ directory of your WordPress installation and activate it from the Plugins page.
     31You 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.
    3432
    3533== Frequently Asked Questions ==
     
    4947== Changelog ==
    5048
     49= 00.03 =
     50
     51No change to the code. Just updated the howto and testing.
     52
    5153= 00.02 =
    5254
Note: See TracChangeset for help on using the changeset viewer.