Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

How Do I Update My Live Website from the Localhost?

Hey there!

After developing a WordPress template, I was able to transfer it from localhost to my live web server using Filezilla. Awesome!

Once it was up, though, I noticed some things I wanted to change. Rather than tweaking the code in the Editor option in the WordPress dashboard, I made all of the changes on the original localhost version of my website. At this point, I am ready to transfer the php files that I changed to the live site.

I'm not sure how to do this, though. I would assume I would use Filezilla again for the transfer. However, I don't need to transfer ALL of the WordPress information again, do I? Can I not just transfer the template folder?

When I opened Filezilla today to try it, I noticed that all of the PHP files on the localhost side showed a "last modified date" as the date I originally transferred the first version of the website, rather than today (the actual last date of modification).

Wow... so sorry that is kind of rambly. I'm in a situation where I need help, but I'm not 100% sure what I need help with. I just want to transfer a few updated files, and I don't know what that process looks like. Thanks!

1 Answer

William Whitworth
William Whitworth
6,117 Points

I usually back-up the current template files on my desktop by dragging and dropping the template file to my desktop through FTP. Also export the Wordpress database usually either a plugin or just phpMyAdmin (if you are using it).

Then I either upload the updated theme, the entire folder, or just the individual files within the theme that need to be updated. I use Coda or Fetch, but any FTP program works.

Don't upload the entire Wordpress installation, this will most likely cause problems, and take forever. Just the theme and its files.

Got it. Thanks!