• I’m wondering how to place a new .php file in the webserver that is work for WP. By reading TheLoopInAction, I want to try it out: The World’s Simplest Index Page. Therefore, I copy the code into a .php file, eg, called “thesimpleindex.php” and place it in the root directory of my WP blog, “/htdocs/blog/”.

    However, it doesn’t work: "Fatal error: Call to undefined function: get_header() in \htdocs\blog\test-thesimpleindex.php on line 2".

    I think it is due to the relative location between “header.php” and “thesimpleindex.php” and so I try to place the index into directory “/htdocs/blog/wp-content/themes/default/” but it couldn’t help.

    Do you know where should I place files, e.g. the index above and some archive script, that call to get header.php and footer.php?

Viewing 8 replies - 31 through 38 (of 38 total)
  • I’d place it outside those comment ‘markers,’ as there’s no guarantee WordPress won’t whack additions within them it doesn’t consider itself responsible for.

    Okay, good. That was why I asked: I may not need to know, but someone else surely will!

    Wow! A lot has happened here over the weekend! Okay:

    @kafkaesqui: going to try the .htaccess hack. Thanks!

    @moshu: LOL on the “Winterpeg” mention! I live Here (not really.)

    @vkaryl: Ditto! I told my brother we should have gone swimming after supper last night.

    Edit: The .htaccess hack is no longer necessary since the upgrade to 2.0 (figures.) Add that to the list of changes since Christmas. Oh, and how do you guys like the new www.ads-software.com interface and the new admin interface? I think they’re swell!

    ~Jonathan

    Yeah, I just noticed that it posted half a dozen times…sorry. I don’t know how I did that.

    jon,
    don’t worry, I deleted the repeat posts – it was probably due to some server glitches.

    /.? :o)

    Yes, jon, I quite like the “new look”. I also like that for me on dialup it loads quite a bit faster….

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘alternative index file location’ is closed to new replies.