PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. File
  4. Random File
Random File icon

Random File

Retrieve the name, path, or link to a randomly chosen file or files in a specified directory.

By Scott Reilly·File·Free
5(1 reviews)
·80 active installs·Updated 12 months ago
DownloadVisit HomepageCompare

As of April 2026, Random File is a WordPress file plugin with 80 active installations and a 5/5 rating from 1 reviews. It has been downloaded 29K+ times in total. Requires WordPress 2.8+ and PHP false+. Available on WordPress.org since 2004. Top alternative: Theme Editor.

5/51 reviews
80active installs
29K+total downloads
22 yearssince 2004

Overview

This plugin provides template tags that allow you to retrieve the name, path (relative or absolute), url, or fully marked-up link to a randomly chosen file or files in a specified directory.

Arguments to the functions permit you to limit what file(s) can be randomly selected based on a given set of file extensions. You can also explicitly specify files that should not be randomly selected.

This functionality can be useful for displaying random images/logos or including text from random files onto your site (writing excerpts, multi-line quotes, etc). Other ideas: random ads, random CSS files, random theme template selection.

Notes:

  • If you want to actually display the name of the random file, be sure to ‘echo’ the results:

  • Unless you limit the file search to only include a…

Read full description on WordPress.org

Ratings & Reviews

51 reviews
5 ★
1
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress2.8+ requiredTested up to 6.8.5
PHPfalse+ required

Top Alternatives to Random File

Theme Editor icon
Theme Editor
4.650K+ installsUpdated 2 weeks ago
ViewCompare
Phoenix Media Rename icon
Phoenix Media Rename
4.750K+ installsUpdated 6 months ago
ViewCompare
Media File Renamer: Rename for better SEO (AI-Powered) icon
Media File Renamer: Rename for better…
4.640K+ installsUpdated 3 weeks ago
ViewCompare
What The File icon
What The File
4.940K+ installsUpdated 1 month ago
ViewCompare
Iptanus File Upload icon
Iptanus File Upload
4.410K+ installsUpdated 3 months ago
ViewCompare
View all file plugins →

Frequently Asked Questions

Changelog

2.0.1 (2025-04-08)

  • Fix: Fix typos in documentation
  • Change: Note compatibility through WP 6.8+
  • Change: Update copyright date (2025)
  • Unit tests:
    • Change: Switch uses of assertRegExp() to assertMatchesRegularExpression() for future PHPUnit 10 compatibility

    …and 1 more changes

View full changelog on WordPress.org

Contributors

Scott ReillyScott Reilly
Plugin Info
Version
2.0.1
Last Updated
Apr 8, 2025
WP Requires
2.8+
Tested Up To
6.8.5
PHP Requires
false+
Active Installs
80
Downloads
29K+
Added
Dec 21, 2004
Business
Free

Tags

filefilesrandomrandomizecoffee2code

Developer

S
Scott Reilly
63 plugins0.1M+ total installs
View all plugins →

Quick Compare

Random File vs Theme Editor→Random File vs Phoenix Media Rename→Random File vs Media File Renamer: Rename for better…→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.