WordPress.org

Ready to get started?Download WordPress

Forums

page template problem (1 post)

  1. maojiemng
    Member
    Posted 5 years ago #

    when I define a single page template, such as about.php and page-index.php.I have define page.php also,whose content is following:

    <?php get_header(); ?>

    <?php
    if (is_page('about')){
    include (TEMPLATEPATH . '/about.php');
    } else {
    include (TEMPLATEPATH . '/page-index.php');
    }
    ?>

    <?php get_footer(); ?>

    but when I go to browse http://localhost/index.php/about ,

    I find there is a problem , the_header content missing, it just don't

    display on the browser,I view the page source by the browse ,the_header conte is there.

    I want to know how it happens and how to solve it.

Topic Closed

This topic has been closed to new replies.

About this Topic