Random Gallery
开发者 |
David G
David Greenwold
|
更新时间 |
2023年4月3日 01:20 |
捐献地址: |
去捐款 |
PHP版本: |
3.0.1 及以上 |
WordPress版本: |
4.2.1 |
版权: |
GPLv2 or later |
版权网址: |
版权信息
|
详情介绍:
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.
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:
[gallery ids="1,2,3,5,8,13,21"]
Then, all you have to do is change "gallery" to "random-gallery" and add shownum to the end, like this:
[random-gallery ids="1,2,3,5,8,13,21" shownum="3"]
In this example, there are seven photos in the list, but only three will be shown at a time.
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!
安装:
Drop random-gallery.php in the wp-content/plugins/ directory of your WordPress installation and activate it from the Plugins page.
常见问题:
What if I have a question?
I'd be happy to help! david.greenwold@gmail.com
What if I have a suggestion?
That would be most welcome! david.greenwold@gmail.com
What if I find a bug?
Please let me know right away! david.greenwold@gmail.com
更新日志:
00.01
Added header and comments. Submitted to wp.
00.00
Just the code. Made for and deployed on client's website.