independent page giving errors (4 posts)

  1. fussco
    Posted 7 years ago #

    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">
    <?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!!

  2. fussco
    Posted 7 years ago #

    Can someone please help me with this? I'm under a close deadline.

    Thanks so much,

  3. fussco
    Posted 7 years ago #

    Anyone, please??

  4. fussco
    Posted 7 years ago #

    The answer to this is to use page templates. They are pretty great.

Topic Closed

This topic has been closed to new replies.

About this Topic