Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Andrew Chappell
Andrew Chappell
12,782 Points

How to develop locally from a live Wordpress install without overriding most current posts?

I know how to migrate a Wordpress installation from live site to local and vice versa but I'm unsure how to get the latest site from the web server, develop it locally and then re-upload it with changes without affecting what the client has done in the meantime.

For example, if they have written 3 new posts while I'm developing locally won't those posts get overridden when I FTP my local files?

2 Answers

Vladimir Fernandes
Vladimir Fernandes
4,428 Points

Hi Andrew, All Wordpress content data is stored in the database - including your permalink structure - posts, pages, comments, etc. Those are only overridden from the dashboard or by modifying them in the database(very careful). The FTP folders on the other hand contain all the structure and layout of your site: including themes, plugins,and many core Wordpress folders/files ( stay away). Those folders contain all the necessary structure you need to design and develop/code your website. As a developer You will be mostly working under the WP-content folder:( one example is the Themes folder) When you are developing a theme you create all your structure (HTML/CSS/ Javascript) like you would normally , than you would use the famous Wordpress query to loop through your post or pages and echo your data from the posts or pages (title, content, excerpt, etc) using Wordpress functional tags, ex:the_title(), you can think of them as variables or functions that holds your data content and are changed dynamically depending on the page or post you are.

I hope this can help you ! Thanks

You want to edit/develop wordpress template right? Then just transfer the live wordpress site in local machine and edit it develop it and reupload it without give any touch on mysql database of live server. then the content will not changed. it will just change the look the mysql database content post, users, image everything will unchanged and updated.