WordPress.org

Ready to get started?Download WordPress

Forums

creatings pages with the install.php file (7 posts)

  1. Rob Poitras
    Member
    Posted 9 years ago #

    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

  2. oriecat
    Member
    Posted 9 years ago #

    .

  3. oriecat
    Member
    Posted 9 years ago #

    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?

  4. Ming
    Member
    Posted 9 years ago #

    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).

  5. Rob Poitras
    Member
    Posted 9 years ago #

    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.

  6. Rob Poitras
    Member
    Posted 9 years ago #

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

  7. skippy
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.