Title: Can&#039;t include wp-load.php
Last modified: August 31, 2016

---

# Can't include wp-load.php

 *  [sance](https://wordpress.org/support/users/sance/)
 * (@sance)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/)
 * Hey,
 * I would like to include WordPress API in an external file by including/requiring
   wp-load.php file.
 * The problem is when the file is included, the script for some reason automatically
   redirects me to my WordPress home page and I can’t do nothing.
 * I already tried any possible option to include the file but it still redirects
   me. Somebody already faced such a bug?
 * Empty PHP file with this line is enough to redirect me:
    **require_once(‘../wp-
   load.php’);**
 * Running on Linux.

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

 *  [glowkazaf](https://wordpress.org/support/users/glowkazaf/)
 * (@glowkazaf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/#post-7063697)
 * Good Day!
 * I have the same problem too. Using this line of code require_once(‘../wp-load.
   php’); is enough to use all of wordpress’ functions outside a wordpress site 
   but doesn’t seem to work anymore on recent version of wordpress. As what have
   been mentioned by lance the script redirects to the wordpress home page.
 * Can someone help us with our problem? Hoping for a response from wordpress’ support
   team.
 * Thanks!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/#post-7063764)
 * [@glowkazaf](https://wordpress.org/support/users/glowkazaf/), Please don’t use
   the modlook tag for this. WordPress isn’t a company, it’s the name of software
   that is freely distributed. People give support for the software, but that doesn’t
   mean “WordPress” has a support team.
 *  [glowkazaf](https://wordpress.org/support/users/glowkazaf/)
 * (@glowkazaf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/#post-7063765)
 * [@andrew](https://wordpress.org/support/users/andrew/) so where and who should
   we ask for help regarding this problem?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/#post-7063766)
 * Right here on the forum just like [@sance](https://wordpress.org/support/users/sance/)
   has done so. Better yet, create your own thread: [https://wordpress.org/support/forum/how-to-and-troubleshooting#postform](https://wordpress.org/support/forum/how-to-and-troubleshooting#postform)

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

The topic ‘Can't include wp-load.php’ is closed to new replies.

## Tags

 * [wordpress integration](https://wordpress.org/support/topic-tag/wordpress-integration/)
 * [wordPress-bug](https://wordpress.org/support/topic-tag/wordpress-bug/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/cant-include-wp-loadphp/#post-7063766)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
