CAll Us: (+254) 705 352 288 Submit Ticket   Login

WordPress Advanced

You are here:
Estimated reading time: 8 min

Host Transfer

In this chapter, we will study how to transfer WordPress to a new hosting platform.

Here, we have used Hostinger web hosting to transfer the WordPress site to another host.

Just follow the simple steps given below to transfer your WordPress site to another host.

Step (1) − Keep the backup of WordPress files and export the database. We will study about this in detail in the chapter WordPress – Backup & Restore

Step (2) − Login to your cPanel and click on MySQL Databases as shown in the following screen.

WordPress Host Transfer

Step (3) − Create a new database and MySQL user as shown in the following screen. The page has the following fields −

WordPress Host Transfer

  • MySQL Database Name − Enter your database name.
  • MySQL Username − Enter your username.
  • Password − Set password for your database.
  • Password again − Once again set the same password as previous for authentication.

After filling all the fields, Click on Create button.

Step (4) − You can view your created MySQL database, User and Host as shown in the following screen.

WordPress Host Transfer

Step (5) − Click on + symbol.

WordPress Host Transfer

Step (6) − Click on phpMyAdmin.

WordPress Host Transfer

Step (7) − Click on Import tab on the phpMyAdmin page.

WordPress Host Transfer

Step (8) − Click on Choose File button to select the backup file from your system and click on Go button.

WordPress Host Transfer

Step (9) − You can view the tables of database uploaded as shown in the following screen.

WordPress Host Transfer

Step (10) − Upload your WordPress files by using file transfer protocol(FileZilla) as shown in the chapter WordPress – Backup & Restore in Restoring WordPress Files section.

Step (11) − Edit wp-config.php file as mentioned in the Restoring WordPress Files section in chapter WordPress – Backup & Restore.

Step (12) − Inside the Website section of hostinger, Click on Auto Installer.

WordPress Host Transfer

Step (13) − You can view the uploaded file of the WordPress. Click on the URL link as shown in the following screen.

WordPress Host Transfer

Step (14) − You can view the login page of WordPress.

WordPress Host Transfer

Version Update

In this chapter, we will study how to update version in WordPress. Here, we will upgrade WordPress to the latest version through the admin panel.

Following are a few simple steps to update the version in WordPress.

Step (1) − Click on Please Update Now as shown in the following screen.

WordPress Version Update

You will get notifications in WordPress admin panel when there is a newer version available for WordPress. Before updating, it is advised to keep WordPress backup.

Step (2) − After clicking on the update link, the following page gets displayed. Click on Update Now button.

WordPress Version Update

Step (3) − The following message gets displayed during the upgradation of WordPress.

WordPress Version Update

Note − While updating the version, if you get an error as

Fatal error: Maximum execution time of 30 seconds exceeded in C:\your wordpress folder\wp-includes\class-http.php on line 1597

then you need to take the following actions −

  • Open your WordPress folder → wp-includes folder
  • Open class-http.php file and add the following line at the beginning − set_time_limit (0);
  • Save the file.

Now your WordPress is successfully upgraded.

Spam Protection

In this chapter, we will learn how to protect your WordPress blog or website from spam. Make sure that your WordPress script is updated to the latest stable version. WordPress comes with a preinstalled antispam solution – Akismet.

You can activate Akismet, for which you should have a WordPress API key. You have to register at the official WordPress website. The key will be sent to your mail box.

Following are the steps to follow to enable Akismet Spam Protection plugin for your website or blog.

Step (1) − Go to your WordPress admin area → Plugins → Installed. The following screen will be displayed.

WordPress Spam Protection

Step (2) − Click on Activate button as shown in the following screen.

WordPress Spam Protection

Step (3) − The Akismet plugin will be activated and then Click on Activate your Akismet account button as shown in the following screen.

WordPress Spam Protection

Step (4) − Click on Get your API key as seen in the following screen to get a new key or enter manually, if you already have API key.

WordPress Spam Protection

Step (5) − If you don’t have API key then, click on GET AN AKISMET API KEY tab to move further.

WordPress Spam Protection

Step (6) − Fill up the required fields and click on Sign up button as shown in the following screen.

WordPress Spam Protection

Step (7) − Once you complete with signup process. You will get an API key in your registered e-mail id. Enter API key manually and click on Use this key button as seen in the following screen.

WordPress Spam Protection

Step (8) − If you have entered a correct API key, it will be verified and you will get a confirmation message as reflected in the following screen.

WordPress Spam Protection

Step (9) − Now your blog will be protected from spam by Akismet. You will be able to check the comments in your blog for spam, as well as manually mark comments as spam from the blog admin area → Comments.

WordPress Spam Protection

You can keep a track of how many spam posts have been stopped by Akismet and you can secure your posts, blogs, comments, etc. Furthermore, you can prevent your website from spammers, who can harm your site.

Backup & Restore

In this chapter, we will study how to Backup & Restore files and database in WordPress. In WordPress there are two parts of backing up such as −

  • WordPress Files Backup
  • WordPress Database Backup
  • WordPress Files Restore
  • WordPress Database Restore

WordPress Files Backup

To get the backup files of WordPress, you need to install FileZilla Client on your system.

Following are the simple steps used for files backup operation in WordPress −

Step (1) − Open the FileZilla Client as shown in the following screenshot.

WordPress Backup and Restore

Step (2) − Enter the Host, Username, Password and Port like you have used to log-in to your cPanel.

WordPress Backup and Restore

After filling all the fields, click on Quickconnect button.

Step (3) − You will get all files and folders of your WordPress site on the right side as seen in the following screen.

WordPress Backup and Restore

Step (4) − Select all the files and folders and right click on the mouse and click on Download.

WordPress Backup and Restore

After downloading the WordPress files from cPanel, it will be saved on your system.

WordPress Database Backup

Following are the simple steps for database backup in WordPress −

Step (1) − Type the path http://localhost/phpmyadmin in your browser. You will get the following screen.

WordPress Backup and Restore

Step (2) − Click on the database name ‘wordpress’ which you have created for WordPress.

WordPress Backup and Restore

Step (3) − After clicking on database wordpress, it will open the following page. Click on Export tab.

WordPress Backup and Restore

Step (4) − You will get two methods to export the database i.e. Quick and Custom. Select any one of the methods and click on Go button.

WordPress Backup and Restore

After exporting the database file, it will get saved on your system.

Restoring WordPress Files

Following are the simple steps used to restore the files in WordPress using ftp −

Step (1) − Open the FileZilla Client and login to your site using ftp as shown in the following screen.

WordPress Backup and Restore

Step (2) − Open the local directory in ftp and upload all WordPress files to your website as shown in the following screen.

WordPress Backup and Restore

Step (3) − Then, go to your wordpress folder → wp-config.php file. Copy and rename wp-config.php file before editing, in case of some mistake you can restore this file back.

Open the wp-config.php file and locate the following code.

define('DB_NAME', 'db_name');

Replace the db_name with your database name which you have created.

define('DB_USER', 'db_user');

Replace the db_user with your username of MySql.

define('DB_PASSWORD', 'db_password');

Replace the db_password with your password of MySql.

Save your wp-config file after editing and upload it to your WordPress site through ftp.

Restoring WordPress Database

Following are the steps used to restore the database in WordPress −

Step (1) − Type the path http://localhost/phpmyadmin in the browser. The following screen will pop up.

WordPress Backup and Restore

You can create a new database or import your backup in the existing database.

Here we’ll create a new database name, i.e., new_wordpress and click on Create button.

Step (2) − You can view your created database as shown in the following screen. Click on the database name new_wordpress.

WordPress Backup and Restore

Step (3) − Click on Import.

WordPress Backup and Restore

Step (4) − Click on Choose File button to select the backup file from your system. After uploading the sql file, select format as SQL as shown in the following screen.

WordPress Backup and Restore

Click on Go button.

Step (5) − Once you click on Go, you will get a message after the sql file is uploaded successfully.

WordPress Backup and Restore

Optimization

In this chapter, we will study how to Optimize WordPress site.

Here are a few simple tips to optimize your WordPress site.

  • Ensure high quality and meaningful content.
  • Have the right names for images.
  • Use short permalinks that contain keywords.
  • Have optimized themes.
  • Sitemap should be in XML format.
  • Connect posts to social networks.
  • Beware of black hat techniques.
  • Delete your trash box.
  • Keep Checking Your Site Statistics
  • Keep checking your plugins.
  • Use CSS and JavaScript effectively.

Ensure High Quality and Meaningful Content

Any page you create, the most important thing that matters is the content. You must have good content with keywords that can be helpful for users, not for the search engines. Content should be understandable and not complicated or difficult to read.

Have the right names for images

The names you choose for your images must be unique; consider choosing images keeping the user in mind. Use keywords that might be helpful for the users. Have some specific names for your images and don’t forget to add your alt tags and title tags to your images.

For example − If your image is about Chocolate sundae Ice-cream then do not mention the name as DSC12346, instead put it as ‘Chocolate-sundae-High-street-restaurant-new-york.jpg’. This would be much easier to search.

Use short permalinks that contain keywords

The permalinks you use must be understandable. For example − Use http://www.mywebsite.com/tutorialspoint/telangana/ instead of http://www.mywebsite.com/page-id?5631456325

Have optimized themes

Use those themes that are fast and are optimized for WordPress so that when applied to a website, it must not have low speed.

Sitemap should be in XML format

Google has many tools that can be useful. Tools like Website Optimizer, Webmaster Central, and Google XML sitemaps are very easy to use.

Connect posts to social media

Social media is a very important aspect today. So have them connected to your blog posts, pages, etc., to have good ranks and popularity. Help promote others posts and pages too and they will do the same in return.

Beware of black hat techniques

Don’t trick Google as it finds you in no time. Don’t put yourself in trouble and create problems for your site by using black hat techniques. Be sure to use genuine SEO techniques.

Delete your trash box

Always consider clearing your trash for more speed and to have a good flow with your website.

Keep checking your site statistics

Size of page matters a lot. The more images, flash, videos or media related posts on your page, the more it would be slower to load. Yslowi> module plugin is recommended to help you get a faster page browsing.

Check plugins

Having many plugins in WordPress may also be the reason for your page to slow load. So keep a check on your plugins which you’re working on. Consider checking your plugins before you add them.

Use CSS and JavaScript effectively

Always keep your CSS at the upper side of the page and JavaScript at the bottom. Let CSS load first and then JavaScript. Here is a plugin that will help you get your JavaScript’s at the bottom of the page. It is footer javascript.

Reset Password

In this chapter, we will learn how to reset your passwords in WordPress. We have two methods of resetting passwords in WordPress −

  • User
  • Lost your password

Let’s look how to set password through the User section.

Step (1) − Login to your wordPress admin panel and click on Users → All Users from the dashboard.

WordPress Reset Password

Step (2) − When you click on All Users you get a page with a list of users. From this select the one you want to reset password of and click on edit.

WordPress Reset Password

When you click on edit, the following page gets displayed.

WordPress Reset Password

Now let’s look into resetting your password using Lost your password section.

Step (3) − In this page you can type in your new password that must contain 7 characters. Once you are done with setting your new password click on Update Profile.

Step (3.1) − When you try logging into your WordPress admin panel, you forget your password and need to reset it, you get the following message on the page.

WordPress Reset Password

Step (3.2) − Click on Lost your password? The following page appears. Update your e-mail and say Get New Password.

WordPress Reset Password

Step (3.3) − After you click, you get a message saying a Link has been sent to the e-mail address you provided.

Step (3.4) − Go to your e-mail and open the (WordPress Site) Password Reset mail and click on the link that is provided.

Step (3.5) − Type your new password, confirm again if required and then click on Reset Password.

Was this article helpful?
Dislike 1
Views: 31