• 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)
  • 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?

    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
    Which uses the include(“wordpress/index.php”) to get to:
    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

    (@papst)

    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.

    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.