Create a static wordpress page (like mypage.php)-Tutorials

Discussion in 'WordPress' started by sandeepdude, Jun 19, 2009.

  1. #1
    Hello,

    if you are a wordpress user like me,then you would have surely attempted to create a static wordpress page.

    if you are not successful in making it,then use my short tutorial to make it.i just created my static page successfully after many attempts.

    you can learn it from my blog at

    http://www.tldblogger.com/create-a-static-wordpress-page/

    Reps appreciated....:D:D
     
    sandeepdude, Jun 19, 2009 IP
  2. jpang

    jpang Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I remember figuring out how to do this awhile ago.

    You really only need this part at the top of the php file
    require( dirname(__FILE__) . '/wp-load.php' );
    PHP:
    and then you can just copy everything from the theme files.
     
    jpang, Jun 19, 2009 IP
  3. zeekstern

    zeekstern Active Member

    Messages:
    872
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I thought WP had a setting in the control panel that allowed you to create a static page. Is this not true?
     
    zeekstern, Jun 19, 2009 IP
  4. sandeepdude

    sandeepdude Well-Known Member

    Messages:
    1,741
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #4
    yes. but its not for a real page.
    s,but that is for a wordpress page.this creates a .php page with the same header,footer and sidebar of your wordpress theme....
     
    sandeepdude, Jun 19, 2009 IP
  5. williamsweb

    williamsweb Active Member

    Messages:
    2,016
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    75
    #5
    in short, take the code from html source code and add the content ;)
     
    williamsweb, Jun 19, 2009 IP