Support » Themes and Templates » independent page giving errors

  • I have a feeling there is a quick and obvious answer to this, so if you know, please help.

    I’m trying to create a page in my theme’s directory called: independent.php.

    I want it to have a swf embedded but to share the header (Which contains the navigation to the rest of the site) and the footer.

    Structurally I want it to look like this

    <?php get_header()>
    <div id=”container”>
    <div id=”content”>
    INSERT SWF OBJECT CODE HERE
    </div>
    </div>
    <?php get_footer()?>

    I’m not having problems at all with insterting the flash. I have that working with conditional statements on individual pages.

    What I’ve tried:

    1. Duplicating page.php and wiping the content section and pasting my flash code.

    When I go to site.com/wp-content/themes/themename/independent.php I get:

    Fatal error: Call to undefined function: get_header() on line 1

    So what is happening is this isn’t being recognized as a legit wordpress function-accepting page.

    2. Seeing this I tried pasting the header and footer code in place of the get functions.

    Fatal error: Call to undefined function: bloginfo()

    So again it just doesn’t like the page….

    Any quick tips to create a page that only uses the navigation in the header and footer, and is just a complete content otherwise independent of wp calls?

    Thanks in advance!!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘independent page giving errors’ is closed to new replies.