>
Download This Plugin | |
Download Elegant Themes | |
Name | Random File |
Version | 1.8.1 |
Author | Scott Reilly |
Rating | 100 |
Last updated | 2015-02-16 08:54:00 |
Downloads |
19271
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Random File plugin added 3 bytes of resources to the Home page and 3 bytes of resources to the sample Post page.
Random File plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Random File plugin ads no tables to your Wordpress blog database.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 specify 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:
<?php echo c2c_random_file( '/random' ); ?>
Unless you limit the file search to only include a particular extension (via $extensions
argument), all files in the specified $dir
will be under consideration for random selection
Can be run inside or outside of "the loop"
Links: Plugin Homepage | Plugin Directory Page | Author Homepage