Changeset 2067700
- Timestamp:
- 04/12/2019 08:59:01 AM (7 years ago)
- Location:
- random-gallery/trunk
- Files:
-
- 2 edited
-
random-gallery.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
random-gallery/trunk/random-gallery.php
r1281737 r2067700 13 13 Author URI: http://www.greenwold.com/web-projects/#random-gallery 14 14 15 Version: 00.0 215 Version: 00.03 16 16 17 17 */ -
random-gallery/trunk/readme.txt
r1304477 r2067700 1 1 === Random Gallery === 2 2 Contributors: David Greenwold 3 Donate link: http://www.greenwold.com/ web-projects/#random-gallery3 Donate link: http://www.greenwold.com/ 4 4 Tags: gallery, tiled, random, truncate, list, media, pictures, photos 5 5 Requires at least: 3.0.1 6 Tested up to: 4.47 Stable tag: 00.0 26 Tested up to: 5.1.1 7 Stable tag: 00.03 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Display a random selection of photos from a n arbitrarily largelist.11 Display a random selection of photos from a list. 12 12 13 13 == Description == … … 15 15 Give 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. 16 16 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: 17 Random Gallery works with an old fashioned shortcode, like this: 22 18 23 19 [random-gallery ids="1,2,3,5,8,13,21" shownum="3"] 24 20 25 You can also use the standard WP Gallery options: type, columns, size, and link.21 You 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. 26 22 27 In this example, there are seven photos in the list, but only three will be shown at a time. 23 To 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 25 Note that you can pass some of the normal Gallery shortcode options into the Random Gallery shortcode. These options are type, columns, size, and link. 28 26 29 27 There'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! … … 31 29 == Installation == 32 30 33 Drop random-gallery.php in the wp-content/plugins/ directory of your WordPress installation andactivate it from the Plugins page.31 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. 34 32 35 33 == Frequently Asked Questions == … … 49 47 == Changelog == 50 48 49 = 00.03 = 50 51 No change to the code. Just updated the howto and testing. 52 51 53 = 00.02 = 52 54
Note: See TracChangeset
for help on using the changeset viewer.