creating a php page outside wordpress

Discussion in 'PHP' started by ouchs, Jul 14, 2007.

  1. #1
    I want to create a php page outside the blog but I still want to have the blog theme header and side bar in the page. How do I do so?
     
    ouchs, Jul 14, 2007 IP
  2. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Well i am not a php wizard at all but i would try this
    <?php get_header(); ?>
    ...your code...
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    
    PHP:
    I guess that the filenames may be different depending on your used template.
     
    Bagi Zoltán, Jul 14, 2007 IP
  3. ouchs

    ouchs Peon

    Messages:
    294
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    do i put the file in the template folder?
     
    ouchs, Jul 14, 2007 IP
  4. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #4
    just hit ctrl+u(if u use firefox) on your main WP page , copy the source of the header and parts you want to copy and paste them into the external file ;)
    they must work! :) but they will be static in nature if you know what i mean ;)
    hope this helps you :)
    gluck!
     
    killerj, Jul 14, 2007 IP
    ouchs likes this.
  5. ouchs

    ouchs Peon

    Messages:
    294
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    oh man thanks for your help! I got it:) Rep added:)
     
    ouchs, Jul 14, 2007 IP