🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Random Gallery icon
Possibly abandoned Tested up to 6.2.16 #79 in category

Random Gallery

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.

Active installs200+100+ tier
Downloads · 30d188▲ +67.9% vs prev. 30d
Rating4.5/511 reviews
Health score36/100At risk
All-time downloads7.6KSince Mar 2015
Support resolved—No recent threads
RequiresWP 3.0.1PHP any
Downloads · 7d62▲ +29.2% week over week
Our verdict

Consider an alternative

Random Gallery shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites, is rated 4.5/5 and was last updated 4 years ago, and scores 36/100 on our health check.

  • Small user base (200+ active installs)
  • No update in 3 years
  • Only tested up to WordPress 6.2 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

51015Sep 4Oct 18Dec 2
Yesterday21
Daily average (1y)3
Peak day21Dec 2, 2026
Last 12 months1.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Random Gallery stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
category >100 10,000 Best category plugins →
gallery >100 4,924 Best gallery plugins →
images >100 10,000 Best images plugins →
random >100 4,035 Best random plugins →
subset >100 303 Best subset plugins →

Version adoption

Share of active sites per release.

  • 00.0893.2%
  • 00.076.8%

Rating breakdown

★★★★★★★★★★ 4.5 from 11 reviews

  • 5★72.7%
  • 4★18.2%
  • 3★0.00%
  • 2★0.00%
  • 1★9.1%

About Random Gallery

From the official readme · v00.08

Description

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.

The Basics

Random Gallery works with an old fashioned shortcode. You specify the pool of images with the ids or category parameter. Then you specify how many you want to show with the shownum parameter.

Here’s an example of the ids method:

[random-gallery ids='101,102,103,104,105' shownum='3']

Note there are five images in the list but only three will be shown at a time.

And here is an example of the category method:

[random-gallery category='myCategory' shownum='3']

Random Gallery can handle the ordinary Gallery shortcode parameters columns, size, and link:

[random-gallery category='myCategory' shownum='3' columns='1' size='medium' link='none']

You can put shortcodes in all kinds of blocks, but it’s best to use the shortcode widget.

ids method details

The ids 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.

There are plugins that let you see these numbers directly in the Media Library. Try searching the plugins directory for “reveal ids”.

Otherwise, you can find them manually:

  • open up your Media Library
  • click on a photo
  • the Attachment Details will pop up
  • the URL in your address bar will look like this: https://www.example.com/wp-admin/upload.php?item=101
  • take the number at the end of the URL (in this case 101) and add that number to ids
  • repeat this process for each photo you want to include

category method

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”.

Once you have categories enabled, you can create a category, add images to it, and specify it in the shortcode by name.

Curly Quotes Issue

One tricky thing to watch out for is curly quotation marks. WordPress likes to replace straight quotes (') with curly quotes (‘). This is usually a good thing, but Random Gallery can only handle straight quotes.

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.

Thanks

I hope Random Gallery works for you. If you have any trouble, just shoot me an email. Thanks!

Installation

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.

Changelog

00.08

Adds support for PHP 8. Drops support for Gallery shortcode parameter ‘type’. Updates the readme and testing.

00.07

Bug fix: categories no longer limited to a shownum of 5. Updated the readme and testing.

00.06

Added support for categories. Added a donate link. Updated the readme and testing.

00.05

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

00.04

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

00.03

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

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Random Gallery alternatives

All category plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Pages with category and tag Pages with category and tag Add Categories and Tags to Pages. by YAHMAN 50K+ ★★★★★★★★★★ 4.8 (28) 5 days ago 79
2 Search & Filter Search & Filter Search and Filtering for Custom Posts, Categories, Tags, Taxonomies, Post Dates and Post… by Code Amp 40K+ ★★★★★★★★★★ 4.5 (175) 3 months ago 68
3 PublishPress Taxonomies – Tag, Category, and Taxonomy Manager – Autotagger Automatically Add Terms PublishPress Taxonomies Tags, Categories and WordPress terms are easy with PublishPress Taxonomies. Add a Tag or… by PublishPress 40K+ ★★★★★★★★★★ 4.6 (195) 2 days ago 93
4 Media Library Categories Media Library Categories Adds the ability to use categories in the media library. by jeffrey-wp 20K+ ★★★★★★★★★★ 4.2 (52) 3 months ago 65
5 Add Category to Pages Add Category to Pages Easily add a Post Categories to Wordpress Pages by a.ankit 10K+ ★★★★★★★★★★ 4.7 (30) 7 years ago 46
6 Term Management Tools Term Management Tools Allows you to merge terms, move terms between taxonomies, and set term parents… by scribu 10K+ ★★★★★★★★★★ 4.9 (76) 12 months ago 51
7 WP No Base Permalink WP No Base Permalink Removes category base or parents categories or tag base from your permalinks. Compatible… by Sergio 10K+ ★★★★★★★★★★ 4.1 (16) 7 years ago 38
8 Adjust Admin Categories Adjust Admin Categories Installing this plugin allows you to adjust the behavior of the area below the posts screen… by Masahiro NAKASHIMA 10K+ ★★★★★★★★★★ 5 (4) 4 years ago 37
9 Parent Category Toggler Parent Category Toggler Automatically toggle the parent categories when a sub category is selected. by Ben Lobaugh (blobaugh) 10K+ ★★★★★★★★★★ 4.8 (15) 9 years ago 41
10 List Custom Taxonomy Widget List Custom Taxonomy Widget The List Custom Taxonomy Widget is a quick and easy way to display custom taxonomies… by Nick Halsey 8K+ ★★★★★★★★★★ 4.7 (21) 5 months ago 77

FAQ

Random Gallery: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Random Gallery free?

Yes. Random Gallery is free to download and use from the official WordPress.org plugin directory.

Is Random Gallery safe to use in 2026?

Random Gallery shows warning signs in 2026 — compare the alternatives below before installing. It runs on 200+ sites, is rated 4.5/5 and was last updated 4 years ago, and scores 36/100 on our health check.

How many websites use Random Gallery?

Random Gallery is active on 200+ WordPress websites and has been downloaded 7,599 times since it launched in March 2015. It was downloaded 188 times in the last 30 days.

Does Random Gallery work with WordPress 7.1?

Random Gallery is officially tested up to WordPress 6.2.16, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Random Gallery last updated?

The latest version, 00.08, was released on April 2, 2023 (4 years ago).

Who makes Random Gallery?

Random Gallery is developed and maintained by David G.

What are the best alternatives to Random Gallery?

The most popular alternatives to Random Gallery are Pages with category and tag (50K+ installs), Search & Filter (40K+ installs) and PublishPress Taxonomies (40K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open