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! While you're at it, check out some resources Treehouse students have shared here.

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

WordPress

Cisco Rendon
PLUS
Cisco Rendon
Courses Plus Student 36,045 Points

Can I download my own wordpress site and work on it locally?

I know we might have learned it in the previous lesson but I am having one of those days where the simple things should be easy to remember. If I export it to a file, can I open the site in sublime and xampp?

3 Answers

Shaker Advertising
Shaker Advertising
5,395 Points

So there are a lot of options here.

Ideally, you'll have a local install of Wordpress running on xampp/mamp depending on your operating system. Then, from your live site's FTP, you'll download the full content of your wp-content directory to your local computer. Replace the content of your local install with the newly downloaded content.

That will take care of your themes, uploads, plugins and whatnot.

After that, you'll need to download your live database through phpMyAdmin or what's available to you. Replace the URL paths within your .sql file and upload that to the local database.

Alternatively, you can use various plugins outlined in this tutorial: http://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/

Kevin Korte
Kevin Korte
28,148 Points

The short answer is yes. I use XAMPP so the Wordpress site works locally, and make my edits in Sublime. Not FTP'ing required, just a page refresh to see the changes.

Cisco Rendon
Cisco Rendon
Courses Plus Student 36,045 Points

Kevin,

How do you use xampp? You got me scratching my head here with your answer

Kevin Korte
Kevin Korte
28,148 Points

You just download and install it from here: https://www.apachefriends.org/index.html

I left my settings for it as defaults. It creates a "Xampp" folder in your C: drive on Windows. Inside that folder, look for a "htdocs" folder. Inside that folder, you can create folders for each project. Whatever you want to name it. Than you can install wordpress inside those folders, so you can have multiple installations of WP, and multiple sites in development at once.

Than to use Xampp, you just fire up the control panel it will install, start Apache, and start MySQL, and once those are green, open a web browser, and type in "localhost/foldername" Where foldername is the name of the folder inside the htdocs folder you want to open.

From there, WP will act normally. It can send out emails, you can update, download, and install plugins normally. Everything is right there.

Cisco Rendon
Cisco Rendon
Courses Plus Student 36,045 Points

haha I know that, I created my primary site that way after I learned I could develop a site in that manner. I thought you meant you were downloading the site from a live domain to a local host thru xampp. I totally understand how to develop a site in xampp then upload it to a live server... Thanks for the advice, much appreciated =)