Title: Enablign WordPress Functionality from a separate theme file
Last modified: August 19, 2016

---

# Enablign WordPress Functionality from a separate theme file

 *  Resolved [Mr. Alexander](https://wordpress.org/support/users/mr-alexander/)
 * (@mr-alexander)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/)
 * Greetings,
 * I have a theme file which is separated from the rest of the “pack” and I would
   like to enable all the usual WP functionality, which is, being able to use all
   the existing functions.
 * The file is inside my theme folder.
 * Thank you in advance for your help,
 * Mr. Alexander

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Mr. Alexander](https://wordpress.org/support/users/mr-alexander/)
 * (@mr-alexander)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/#post-1479904)
 * To Clarify my question,
 * What file do I need to include in order to have this capability ?
 * Mr. Alexander
 *  [deniseireland](https://wordpress.org/support/users/deniseireland/)
 * (@deniseireland)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/#post-1479905)
 * where is the /theme/xxxx folder
 *  [deniseireland](https://wordpress.org/support/users/deniseireland/)
 * (@deniseireland)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/#post-1479908)
 * I think im in same position as Mr alexander
 *  Thread Starter [Mr. Alexander](https://wordpress.org/support/users/mr-alexander/)
 * (@mr-alexander)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/#post-1479915)
 * Greetings Denise,
 * I actually found the solution to this and all you have to do is include the following
   the file:
 * <?php require_once(‘../../../wp-config.php’); ?>
 * Where wp-config.php is inside your root WP folder and your file is inside your
   current theme folder.
 * This will enable you to use all the WP functionality inside this page.
 * Hope it helps,
 * Mr. Alexander

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Enablign WordPress Functionality from a separate theme file’ is closed
to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Mr. Alexander](https://wordpress.org/support/users/mr-alexander/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/enablign-wordpress-functionality-from-a-separate-theme-file/#post-1479915)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
