• I want to create a page completely from scratch. It will have calls to get the header, sidebar, and footer. But I just want to write the content and save it as a .php file without going through the administrator page.

    I have tried this, but I get a 404 error. Is there an easy way to “tell” WordPress that I have created this page and make it part of WordPress’s (for lack of a better word) framework?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You certainly can, though I don’t see the reason for not using the Write Page feature. You might have a valid reason for that I just can’t see it…

    If you create a physical file and want to use WP functions in it (like calling the header, footer etc) – make it “WP-aware”:
    put this at the very top of it, before everything

    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

    Thread Starter bishy181

    (@bishy181)

    Thanks, moshu.

    I guess I feel I have more flexibility if I can just build from scratch, but I would be happy to be proved wrong.

    Also, in a separate problem, right now, whenever I try to post a new page (I’m just running WordPress locally right now), Apache crashes. Any ideas?

    Only Pages? And you can publish posts but not Pages? Strange. I also have a local install on XAMPP and never experienced anything like that.

    And for the original question: what about using a million Page templates…? to be “flexible”. (though you should define what ‘flexible’ means in this case ??

    Thread Starter bishy181

    (@bishy181)

    Only pages. I click “Publish” and it crashes.

    Any ideas? Should I post this as new thread to see what others are thinking?

    For Pages you don’t click “publish” – you click “create new Page”.
    On the other hand if it’s crashing the server… that might be something more related to server setup and we do NOT support that kind of questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I create a php page from scratch without using “new page” in the Dashboard?’ is closed to new replies.