Stand Alone WP Page???

Discussion in 'WordPress' started by jawinn, Apr 24, 2007.

  1. #1
    Can anyone tell me how to construct a stand alone wordpress page? It was to look exactly like my blog (use the same CSS) and use the same php calls for the header and footer.

    thx,
     
    jawinn, Apr 24, 2007 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    Can't you just use "new page" instead of "new post"?
     
    Kerosene, Apr 24, 2007 IP
  3. nichevalue

    nichevalue Peon

    Messages:
    479
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The easiest way is to create a page template and then assign a page to use that template. Basically just copy the index.php file in your themes directory to a new template file and modify it with the content that you want. Add the following snippet of code to the top of the file for WP to recognize it as a template:

    
    <?php
    /*
    Template Name: Your-Template-Name
    */
    ?>
    
    Code (markup):
    Once you do this you can assign this template to any page it that page will display your new page.
     
    nichevalue, Apr 24, 2007 IP
  4. jawinn

    jawinn Active Member

    Messages:
    1,024
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    88
    #4
    No. Because from what I can tell the new page will not display PHP code. I need a new page that I can add PHP code to. Because of the way WP operates there is no real way, from what I can see, to add php code without changing all pages.
     
    jawinn, Apr 24, 2007 IP
  5. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
  6. poing

    poing Active Member

    Messages:
    101
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #6
    If you want to do directly from Write Page, I suggest you install PHP-exec plugin. This way you can directly insert PHP stuff inside the Page entry.
     
    poing, Apr 25, 2007 IP