Title: [Plugin: Random File] How to Install
Last modified: August 20, 2016

---

# [Plugin: Random File] How to Install

 *  [tlc72](https://wordpress.org/support/users/tlc72/)
 * (@tlc72)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-file-how-to-install/)
 * Hi,
    I realize you have instructions for installation, but the information is
   above my knowledge level. Could you help me with a step-by-step?
 * After I activate the plugin, what comes next? If I am reading this correctly,
   I am supposed to copy one of the two codes provided into my theme php file?
 * This worries me, as I never am successful in adding code to my php file — every
   plug in that instructs me to copy code into the php file, I end up with a blank
   website and have to restore it.
 * Can you help me understand exactly what code I need to paste and WHERE I need
   to paste this in my theme php file?
    Thanks!
 * [http://wordpress.org/extend/plugins/random-file/](http://wordpress.org/extend/plugins/random-file/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [tlc72](https://wordpress.org/support/users/tlc72/)
 * (@tlc72)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-file-how-to-install/#post-2923113)
 * Update: I copied the following code to my Theme php file
 * <?php function c2c_random_file( $dir, $extensions = ”, $reftype = ‘relative’,
   $exclusions = array() ) ?>
 * This caused everything to go blank. I have had to restore the site from backup.
 * Can you include specifically where this code is supposed to be pasted?
    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Random File] How to Install’ is closed to new replies.

 * ![](https://ps.w.org/random-file/assets/icon-128x128.png?rev=1091134)
 * [Random File](https://wordpress.org/plugins/random-file/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/random-file/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/random-file/)
 * [Active Topics](https://wordpress.org/support/plugin/random-file/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/random-file/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/random-file/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [tlc72](https://wordpress.org/support/users/tlc72/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-random-file-how-to-install/#post-2923113)
 * Status: not resolved