• Hi I am relativly new to wordpress. I started a blog, made a few posts, then switched web hosting company.
    Now that my blog is up and running on new web host I would like to retrieve those original posts, however i’m not sure which .php file stores the blog post entries.
    Any advice will be greatly appreciated.

    TIA

    Hockim

Viewing 15 replies - 1 through 15 (of 16 total)
  • Well, you need to know a little more than that… e.g. that in WP every content (posts, Pages, comments, settings) are stored in the database, NOT in files.

    If you didn’t back up your database at the old host… there is nothing you can do.

    Your blog post entries are stored in a MySQL datanase. The php files are the program to manage and display the posts.
    You have (had) to backup the database and reinstall it at your new host.

    Thread Starter hockim

    (@hockim)

    AH but I do know a little bit about SQL and .php and Yes I did back up from old host.
    Please what .php files do I need to copy to new web host to restore old posts?

    Thread Starter hockim

    (@hockim)

    oh so just cant copy the .php files directly then?
    I have yet to cancel old host so if i need tobackup the actuall database that should not be an issue.

    You can copy the php files directly but that won’t get you your posts.
    You have to restore the database. You can do that with phpMyAdmin which is normally provided by your host.

    Thread Starter hockim

    (@hockim)

    thanks for the help, once backed up how do i import to new mysql?

    Also, reading the documentation BEFORE you make major changes… it’s always beneficial: Moving_WordPress

    Thread Starter hockim

    (@hockim)

    maybe i should just repost the text? Na I like to do it the hard way…

    Read and follow the links ??

    Thread Starter hockim

    (@hockim)

    Thanks for the link ??

    Thread Starter hockim

    (@hockim)

    OK, I imported the wp_post and wp_comments files from old host. I see the correct files in the mySQL table, looks good. I can browse the tables in my SQL, looks great. I log into wordpress as admin and I see the comments however the posts are not there??? Any help would be great.

    TIA

    That’s not what the instructions in that guide say: you import the WHOLE WordPress database… it is not a “whislist” what to backup and import – in case you want to save your old blog. Go back and read it several times until you get it.

    Thread Starter hockim

    (@hockim)

    I folowed this to a tee.
    and the correct information is in the mysql data tables.
    I can see the comments but not the posts

    To Copy Just Posts and Comments

    Upload a new wordpress installation to your new site.
    From your old site, copy the wp_comments and wp_posts tables (from the MySQL database using phpmyadmin) and replace the new site’s MySQL tables with these two from your previous site.
    You will now have all your old posts and comments on your new wordpress site without worrying about changing settings back and foreward.

    That’s a crap and should be corrected immediately – I will delete those line from the Codex in a minute. It doesn’t work like that, sorry.

    Do the “normal” way – importing the whole database.

    [codex edited]

    Thread Starter hockim

    (@hockim)

    ok ill give it a try
    thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Moved Hosts Need to Know What .php File My Blog Post Entries are in’ is closed to new replies.