WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Pages will not display (3 posts)

  1. jami1955
    Member
    Posted 5 years ago #

    Don't have the basics of pages down yet... for instance I noticed it does not matter what url I put in my browser including imaginary pages for http://kobidomassage.com/?page_id= and after the = sign I can write anything, and the server will serve me the home page. Why would I not get a 404 for imaginary pages?

    This is probably the same reason I cannot get my pages I have linked to templates to display. When I call a page I have actually prepared and linked to a template, I still get the home page, that's the only page that wordpress is giving me now. (yes I have saved and published the prepared pages.)

    The code I put at the top of the example page I listed above is:

    <?php
    /*
    Template Name: schedule
    */
    ?>
    <?php get_header(); ?>
    
    <div id="content">
    <?php
         query_posts('pagename=schedule');
    ?>

    Schedule is the name of the page I prepared and linked to this "schedule" template. Anything obvious I'm missing here?
    thanks,
    JSC

  2. jami1955
    Member
    Posted 5 years ago #

    BTW; the page in question url is
    http://kobidomassage.com/?page_id=11

    that is the id wordpress assigned to the page I prepared which is not displaying. The page that url displays however is NOT the page I have prepared.
    JSC

  3. jami1955
    Member
    Posted 5 years ago #

    Ah hah. It had to do with the fact that the index.php was sitting in the same directory as the index.html... and that was being served no matter what query string was in the url. I renamed the index.html page, and now I'm getting the correct pages served.

    JSC

Topic Closed

This topic has been closed to new replies.

About this Topic