Title: Running wp using include(&#8220;&#8230;&#8221;)
Last modified: August 18, 2016

---

# Running wp using include(“…”)

 *  [papst](https://wordpress.org/support/users/papst/)
 * (@papst)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/)
 * Hi,
    first of all: WP is great! second of all: I want to run it using include(“
   wordpress/index.php”); in my site. Although the data is displayed correctly I
   get Notice: Undefined index: the_date in /data/wr/web/missi-on/wordpress/b2-include/
   b2template.functions.php on line 1536 and many other errors on the page. What
   is the correct way to set up wp as I want? Is it possible at all? Thanks.

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

 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/#post-28721)
 * Did you create a MySQL database user, database and assign that user to the database?
   
   Did you put a prefix in front of your tables in the config.php?
 *  [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/#post-28723)
 * It should work… unless you change the way the links work inside your blog however,
   they will point back to your folder and the original index file will not be used
   after someone clicks on a link inside wordpress. I would suggest modifying the
   wordpress index.php in the fashion of your main site.
    To test your theory, I
   have two different indexes setup: [http://dinki.mine.nu/index1.php](http://dinki.mine.nu/index1.php)
   Which uses the include(“wordpress/index.php”) to get to: [http://dinki.mine.nu/wordpress/index.php](http://dinki.mine.nu/wordpress/index.php)
   Click around the site in the first link and see what is does… There are other
   threads on this forum that talk about moving your index file to another folder.
   It could be messy.
 *  Thread Starter [papst](https://wordpress.org/support/users/papst/)
 * (@papst)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/#post-28733)
 * You are right. It works now!
    Nevertheless, I need some help. I want German dates,
   so I put setlocale (LC_ALL, ‘de_DE’); before I include the wp index.php. It seems
   to have no effect at all. I still have “January” and not “Januar”, etc. What’s
   wrong? Thanks.
 *  [southerngal](https://wordpress.org/support/users/southerngal/)
 * (@southerngal)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/#post-28738)
 * You can find those in the extra.config.php 🙂

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

The topic ‘Running wp using include(“…”)’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [southerngal](https://wordpress.org/support/users/southerngal/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/running-wp-using-include/#post-28738)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
