Title: add another php file
Last modified: August 21, 2016

---

# add another php file

 *  [hapke](https://wordpress.org/support/users/hapke/)
 * (@hapke)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-another-php-file/)
 * I would like to add a php file with my own shortcodes that already exists. How
   and where (which file) must I embed the code for shortcode.php?

Viewing 1 replies (of 1 total)

 *  Theme Author [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * (@nikeo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-another-php-file/#post-4309945)
 * Hi, you can simply copy your `shortcodes.php` file at the root of your theme 
   files and use the following code in your functions.php file :
 *     ```
       <?php
       locate_template('shortcodes.php', $load = true, $require_once = true);
       ?>
       ```
   
 * Hope this will help, cheers

Viewing 1 replies (of 1 total)

The topic ‘add another php file’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [presscustomizr](https://wordpress.org/support/users/nikeo/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/add-another-php-file/#post-4309945)
 * Status: not resolved