• On my site I’m using WordPress 1.3alpha.
    Beside the WP standard pages I need several (static, more or less) pages, i.e. PHP scripts. E.g. an interactive contact form (which I can’t do with the “pages” of WP).
    For the layout I changed index.php, wp-comments.php and so on, the PHP pages look like
    <?php require("wp-blog-header.php"); include(ABSPATH."/header.php"); ?>
    CONTENT...
    <?include(ABSPATH . '/footer.php'); ?>

    Now I’d like to move everything in a new “Theme”. This works, the blog is showing the newly created theme without problems. But the first wp-blog-header include in the PHP pages cancel execution of my scripts and show the theme’s index.php instead. How can I avoid this?

Viewing 1 replies (of 1 total)
  • Pages now let you specify a template to load for that page. This allows you to incorporate pages such as your contact form into your theme. See this email thread for details.
    If you just want to circumvent the template redirection, you can add the following before the wp-blog-header require.
    $wp_did_template_redirect = true;
    This may break the redirection in cases where you still want it, however.

Viewing 1 replies (of 1 total)
  • The topic ‘WP 1.3a4 Themes and non-WP pages’ is closed to new replies.