• Resolved jami1955

    (@jami1955)


    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 https://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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jami1955

    (@jami1955)

    BTW; the page in question url is
    https://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

    Thread Starter jami1955

    (@jami1955)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pages will not display’ is closed to new replies.