• it looks like the page feature in wordpress seems to have a bug. after trying to create a page with the name “archive” and the page template archive.php, the default page template refused to work. somehow the main page.php is shown, but the static pages are not included!
    any ideas what could be the problem?

    i tried to do the following:
    * created a file with the name static.php
    * put /*
    Template Name: static
    */
    in the beginning.
    * created a new page (about) , that has “hello world” written
    * set the page template of the new hello-worl page to “static”
    * the hello world does not appear on http://mysite/index.php?pagename=about

    any clues? please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • archive.php should not be used as a Page template, as it’s the default name for the theme template used by archive queries (and categories if category.php does not exist).

    In the case of static.php, what resides in it? Does it include The Loop?

    Thread Starter parasew

    (@parasew)

    thanks for your reply, the problem were some queries i made before, that overwrote the main page.php loop query. the problems are all outlined in the wordpress codex
    http://codex.wordpress.org/the_loop

    thanks for your answer anyway Kafkaesqui!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘default page template broken and weird behaviour in 1.5.1.3’ is closed to new replies.