• I need to include a file outside of the wordpress directory i have looked at the support document but can’t seem to get it working, is there a way i can do this without moving the file i want included.

Viewing 1 replies (of 1 total)
  • you need the following line on top of your .php file:

    <?php require_once("./wp-blog-header.php"); ?>

    If it is sitting outside the wordpress installation directory just change the url to reflect that.

Viewing 1 replies (of 1 total)
  • The topic ‘including a php file outside wordpress’ is closed to new replies.