Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am currently working on a project, actually we have an online site, we are thinking of revamping this. On this online site we have many blogs already.

We have purchased a theme also and doing many customization on localhost.

How is this possible to update the theme with customization and pages on online server from localhost without affecting the blog posts?

share|improve this question
    
Good themes don’t change post content, so you can just push it to the server. –  toscho Jul 2 '13 at 7:15
    
You want to upload whole project and database every thing. or just some files or data –  Adi Jul 2 '13 at 7:16

1 Answer 1

up vote 2 down vote accepted

This depends on your set up. You essentially have two things to move, the Files (images, css, js, php) and the Database.

Moving the theme files is easier, I tend to zip all the theme files on localhost (wp-content > themes > your theme) then install it on the live site under themes > upload which lets you add the zip.

EDIT: You can also use ftp to move the files but it seems to be slower and not as clean.

Now moving the database which controls the pages and menus things get a bit more tricky. It depends on a few things,

  • If you don't have any data on the live site (or want to start fresh) you can simply move the database but you will lose all other data on the site
  • If you have data on the live site you can use the export then import to move post and pages however this will not move the menus.
  • I typically recreate the pages/menus on the live site then add the theme.

Hope this helps.

share|improve this answer
    
thanks BandonRandon –  lord_linus Jul 2 '13 at 7:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.