How to Create a WordPress Test Site

How to create a WordPress test site using a portable version of WordPress where you can test upgrades of WordPress, your theme, and your plugins without breaking your production website. Portable means that you can move the installation from one Windows PC to another and even run it off a USB flash drive.

If you want an even simpler installation than MoWes, google “WordPress Portable” for another option that lets you create a portable WordPress Site in 3 Minutes or Less.

Now that you have a portable WordPress test site, you need to move over your WordPress theme, plugins, and all of your content. After following the steps in this video tutorial, you’ll have a fully functioning, portable copy of your blog or site to test out any and all changes which could break your live, production website, such as WordPress and plug-in updates and theme changes.

How to Add your Site to Google’s Webmaster Tools

media_1295287685951.png

Google Webmaster Tools helps you notify Google of changes on your website and change how your site appears in the search index, learn about how Google views your site, and learn about and fix problems with your site.

Before we begin, you’ll need to create a google xml sitemap for your WordPress website.

Create a Webmaster Tools Account for your WordPress Website

1. Log in to your google account at https://www.google.com/webmasters/tools/
2. Click on the Add a Site button.
3. Enter the URL of a site you’d like to manage. Enter it how it appears in Worpress. For example: enter SmallBusinessWebsites.tv or www.SmallBusinessWebsites.tv depending on your preference and how you have configured it, but be consistent.
4. Select link to your Google Analytics Account (You can also add a meta line to your theme’s header.php file for verification or upload a verification file by FTP).
5. Click on the Verify Now button.

Submit your Sitemap

1. From the Webmaster Tools Dashboard, click on the Submit a Sitemap link
2. Click on the Submit a Sitemap button
3. Type sitemap.xml in the field and click on the Submit Sitemap button.

You can back later to see the information that Google has gathered about your site.

 

How to Add a Google Sitemap to your WordPress Site

What is an XML site map? A site map is a listing of all the posts and pages on your website. XML stands for eXtensible Markup Language. XML is a markup language that is easily read by search engines.

Google, currently the leading search engine, was the first search engine to allow websites to use XML site maps to notify their website indexing robots of the pages on their websites. Other search engines adopted Google’s format. So, one site map will work for all the major search engines.

Why do you need a site map? Search engine indexing robots follow links on your pages to discover other pages. A site map is helpful if your website is new and has not been discovered by the search engines, uses a navigation scheme that a robot cannot follow, and if your site is large and the pages are not well interlinked.

Here’s how to create an XML site map for your WordPress website.

 

Step 1: Install the Google XML Sitemap Plugin

media_1295228839885.png

1. From your WordPress Dashboard, click on Plugins | Add New
2. Search for google xml sitemap
3. Install and activate the Google XML Sitemaps plugin

Step 2. Configure the Google XML Sitemap Plugin

media_1295229139722.png

1. Click on Settings | XML-Sitemap
2. Leave the default settings (or tweak the settings to your liking), and click on the Update Settings button.
3. Go to the top of the page and click on the Click here to build it now link.

Step 3. View your Sitemap

media_1295289181456.png

Add sitemap.xml to the end of your website address to view your sitemap.

 

How to Add Google Analytics Visitor Tracking Code to your WordPress Site

Google Analytics makes it easy for you to track how many vistors visit your website and how they reached your website: Direct (they remembered your website address), Referral (they followed a link from another website), and Search Engine Results (including the search terms the visitors used to find your site).

Google Analytics is free. Just sign up for an account at http://www.google.com/analytics/.

It’s easy too: just copy and paste the code they give you into your WordPress theme. This tutorial will show you how.

Step 1: Create an Account for your Website

media_1295284718109.png

1. Log in at http://www.google.com/analytics/.
2. Click on Add new account
3. Click no the Sign Up button

media_1295284921407.png

Fill out the New Account Signup form and click on the Continue button

media_1295284982575.png

Enter your Name and Country information and click on the Continue button.

media_1295285390909.png

Agree to the terms and conditions and click on the Create New Account button.

media_1295285218703.png

Select the code from <script to </script> with your mouse button. You can also do this by clicking once in code box and using the keystroke combination CTRL-C. Click on the Save and Finish button.

media_1295285548918.png

Most premium themes contain a box where you can paste your code. This is very convenient because you don’t have to make changes to your theme’s files. Consult your theme’s documentation to find the area, click inside the box, and Edit | Paste the code (can also use the keystroke combination CTRL-V).

media_1295285823198.png

If your theme doesn’t contain an area to add your tracking code, you’ll have to edit the theme’s Footer file. From your WordPress dashboard, click on Appearance | Editor.

media_1295285846332.png

Some code will appear in the text box in the center of the screen, but that’s not the file we want. Click on Footer (footer.php) from the file listing on the right hand side. The Footer code will be loaded into the center box. Scroll down to the very bottom of the file.

Important: Editing your theme files can break your theme and keep you from accessing your website. Make sure you have good backups of the footer.php file before you proceed.

media_1295285899921.png

You want to paste the code, using Edit | Paste or the keystrokes CTRL-V, directly before the </body> tag. Click on the Save button.

media_1295286591483.png

Wait a few minutes and the status triangle should change from yellow to green. You’re done.

How to Backup WordPress by Hand

I like to have multiple backups when I am backing up a WordPress site. I start with the quick and easy WordPress export file. Then I download the wp-content directory. This is often all I will need to rebuild the site, but I always export the database to be safe.

Step 1: Download a WordPress Export File

media_1299173671564_1.png

You can export the textual content from all of your posts and pages into one file. Media files, such as images are not exported, but the link to media will work after the media content within the wp-content/uploads directory is moved over.

To export your posts and pages:

1. From the WordPress control panel, go into Tools | Export
2. Select All content
3. Click on the Download Export File button
4. Save the .xml file to your local computer

Step 2: Download the wp-content Directory

media_1299174200304_1.png

The wp-content folder contains your plugins, themes, and media file uploads. Download a copy of this folder to your local computer.

1. Open a program, such as FileZilla, that supports the File Transfer Protocol (FTP).
2. Enter your Domain name
3. Enter your FTP username and password
4. Open the pubic_html folder
5. Click on the wp-content folder and download it to your local computer. Filezilla supports drag-n-drop to your Desktop.

Step 3: Backup the Database using phpMyAdmin

1. Log in to your C-Panel at your hosting account.
2. Find and run the phpMyAdmin program.
3. Select the database used by your WordPress installation

media_1299176317665_1.png

1. Click on the Export tab.
2. In the Export area, Select SQL
3. Click on the Select All link to export all the tables.
4. In the Structure area, make sure Structure is selected and select the first four options.
5. Select Data. The default options should work here.
6. Click on the Go button and save the file to your computer. This may take a while if you have a large database.