This plugin provides template tags that allow you to retrieve the name, path, url, or fully marked-up link to randomly chosen file or files in specified directory..
Arguments to the functions permit you to specify limit what file can be selected based on given set of file extensions.
If you want to display the name of the random file, be sure to 'echo the results..
Unless you limit the file search to include extension, all files in the specified $dir will be under consideration for random selection..
This retrieves the name of random file from directory and returns information based on the file according to the $reftype value...
The number of random files to select from the directory.
If less files are present in the directory, then all files in the directory will be returned .. $dir.
The directory must exist at the directory structure level of your WordPress installation or below . $extensions.
The 'c2c random file hook allows you to use alternative approach to invoke c2c random file in such way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site..
The 'c2c random files hook allows you to use alternative approach to invoke c2c random files in such way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site..
Read more