WordPress.org

Support

Support » How-To and Troubleshooting » creatings pages with the install.php file

creatings pages with the install.php file

  • I want to be able to create multiple pages that I define by adding code into the install.php file
    However I am not sure where to begin on how I might do such a thing.
    any help would be much appreciated

Viewing 6 replies - 1 through 6 (of 6 total)
  • .

    You want to create pages during the install process? Why not create the pages after the install is done? Am I not understanding right? What kind of pages are you talking about?

    Check /wp-admin/install.php. Lines 159 through 167 insert your first post and comments. You could use those queries as guidelines to create pages during the install process (since pages are very similar to posts).

    for the type of installs I am going to be doing (alot of them) I want to have pages automatically created so I dont have to do them manually for each install.
    Since page creation is so easy, I don’t mind having to create new pages that way, but ideally if it were automatic then it would be easier.

    edit: ming just posted. I did see how to create a new post by changing the install.php file. However I am asking for more specific info on what code I should use for creating pages.
    thanks.

    any one else might have an idea on this?
    thanks.

    Pages are just like posts, but their post_status is “static” instead of “publish”.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘creatings pages with the install.php file’ is closed to new replies.
Skip to toolbar