Applying SEO to WordPress Blogs - Teach Yourself VISUALLY Search Engine Optimization (2013)

Teach Yourself VISUALLY Search Engine Optimization (2013)

Chapter 12. Applying SEO to WordPress Blogs

Content Management Systems (CMS) are server-side platforms that allow you to build your website and add content easily using Graphic User Interface (GUI) elements such as text editors. WordPress is a commonly used CMS because it is easy to use and search engine friendly. You can use WordPress to create blogs, websites, and simple e-commerce stores.

9781118470664-co1201

Understanding WordPress CMS

Install the W3 Total Cache Plugin

Configure the W3 Total Cache

Set Up the All in One SEO Plugin

Set Up Permalinks

Install the SEO Friendly Images Plugin

Understanding WordPress CMS

Although WordPress was originally a blogging CMS, it is now used to build corporate websites and e-commerce stores. You can either use www.wordpress.com to build a free blog where you can get free hosting and a blog name or you can install WordPress on your own server by following the steps outlined in this link: http://codex.wordpress.org/Installing_WordPress. Installing WordPress requires that you know how to set up domain names and servers. Each WordPress website has an admin page where you can add content, change the website layout, or add features and functions. WordPress is based on the PHP (Hypertext Processor) programming language that is used to create dynamic web pages.

WordPress Themes

9781118470664-cf1201.eps

The website or blog design in WordPress depends on themes. These are groups of images, PHP files, and CSS (Cascading Style Sheets) files used to create the graphical style for the website menus, forms, and other features. You can upload the themes to the server in the folder /wp-content/themes/. To apply the uploaded theme, you activate it from the Themes section in the WordPress admin page. The layout of the website or blog plays an important role in SEO optimization; it has to be clear and ensure that the content loads easily. It can be difficult for search engine spiders to crawl large files. Further, the layout should be user friendly, display the content in the top portion of the page, and have balance between text and images. A wide variety of WordPress themes are available on the web for free as well as for a fee. You can find free themes in the WordPress Directory at www.wordpress.org/extend/themes.

WordPress Plugins

9781118470664-cf1202.eps

WordPress plugins are a group of PHP-based files that add features and functions to WordPress websites or blogs. Unlike themes, plugins include functions such as contact forms, social media buttons, and more. Different types of plugins can optimize your WordPress website with just a few clicks. There are two methods for installing plugins. The first one is to search for the plugin and install it directly from the Plugins section on the admin page, and the second one is to upload the plugin folder to /wp-content/themes/ on the WordPress website server, and enable the plugins from the admin page. Use plugins wisely because they include a lot of code, which can make a site slower than normal. You can find a huge number of plugins in WordPress Plugin Directory at http://wordpress.org/extend/plugin.

WordPress and SEO

9781118470664-cf1203.eps

WordPress is one of the common CMSs that works well with the SEO process. The WordPress site page and archive structure lends itself to optimal content crawling. Also, it is easy to customize each page or post URL to include important keywords for indexing, which are known aspermalinks. If you choose an SEO-friendly theme, it can aid optimization for your website. WordPress plugins play a significant role in optimizing websites, with an array of different plugins to help you optimize content as well as files. Also, you can customize settings for comments and pingbacks to help increase the content optimization. Pingbacks occur when your website links to a specific site and sends updates to the site about the link.

WordPress Content

9781118470664-cf1204.eps

Content is an essential part of WordPress websites and you need to optimize it in order to appear in search engine results. You can add content to WordPress easily as posts or pages. Posts are content updates that you can add to your website every day, and they are archived on the blog home page. Pages contain static content that you do not change regularly, such as contact information and the company information. You can use the text editor in WordPress to format content and headings to meet with SEO guidelines. The content can be arranged in tags or categories, which are classified for your website content. Tags are keywords that you add to each post and you include the important keywords in each post or page.

WordPress Widgets

9781118470664-cf1205.eps

WordPress widgets are comments sections that you can add to the WordPress sidebar and footer areas. These widgets can include different features, such as recent posts, related posts, ad spaces, and social icons. You can add widgets to either the sidebar or the footer from the Widgets link in the Appearance section on the admin page. In this link, you will find many widgets that you can drag and drop to available areas in your blog or website. Not only are widgets easy to use, but also you can use them to increase the number of internal links on your home page, which can affect page rank and page views. Also, you can use them to display categories for the website content.

Install the W3 Total Cache Plugin

Website or blog loading speed is an essential factor in SEO. Ample speed can help search engine crawlers index more pages in less time, whereas with slow websites, crawlers may skip slow content. The W3 Total Cache Plugin is one of the plugins that you can install on WordPress and configure to create caches or recorded files from the website on the server. This means the user can access static site information without needing to load it again. This cached version of the website files can help speed content loading and result in a lighter network or bandwidth traffic load.

Install the W3 Total Cache Plugin

9781118470664-fg1201.eps

001Type www.seofocus.net/wp-admin/ in your web browser and press ent.eps.

9781118470664-fg1202.eps

The WordPress Log In page appears.

002Type your username.

003Type your password.

004Click Log In.

Note: The admin username and password is created when you install WordPress on the server. You may also ask your server administrator to install it.

9781118470664-fg1203.eps

The WordPress Dashboard appears.

005Position your mouse pointer over Plugins.

The Plugins menu appears.

006Click Add New in the pop-up menu.

9781118470664-fg1204.eps

The Install Plugins page appears.

007Type W3 Total Cache.

008Click Search Plugins.

TIPS

What is caching?

Caching is a method for storing files. The cached data can be HTML, JavaScript, CSS, and images. With a cached version of a website, the website loading speed increases because the server does not have to generate dynamic files for each user’s visit. Instead, the user views the cached data unless there is an update to the website.

How can I uninstall a plugin?

You can remove any plugin from your website through the WordPress admin page. Under the Plugins section, locate the plugin in the list and click Deactivate to remove it from the website. Then remove the plugin folder or files from the server through the FTP client that is used to upload the website files to the server.

While you can install the W3 Total Cache directly from the WordPress admin page, you can also download it to your computer and upload it directly to the server using any FTP client. You can download the W3 Total Cache from www.wordpress.org/extend/plugins/w3-total-cache. Download the plugin, extract its compressed file, and upload the plugin folder to /wp-content/plugins/. Then, go to Plugins in the admin page and activate the plugin from the new Plugins list. When you install the W3 Total Cache, it creates a number of files and folders in the plugins folder or in the wp-content folder.

9781118470664-fg1205.eps

The plugins appear.

009Click Install Now below W3 Total Cache.

9781118470664-fg1206.eps

An alert message appears.

010Click OK.

9781118470664-fg1207.eps

The Plugin installation page appears.

011Click Activate Plugin.

9781118470664-fg1208

The plugin is activated.

TIP

What are alternatives to the W3 Total Cache plugin?

In addition to the W3 Total Cache, there are other caching plugins that you can use to improve your website’s loading speed. The WP Super Cache is a common plugin that is simple to use. It is less complex than the W3 Total Cache plugin. However, it has the disadvantage that when you uninstall it, it does not leave remaining files on the server as the W3 Total Cache does. You can download it from the WordPress admin or from http://wordpress.org/extend/plugins/wp-super-cache/. Also, you can use Hyper Cache, which is a new caching plugin that can greatly improve your website’s speed. You can download this plugin from http://wordpress.org/extend/plugins/hyper-cache/.

Configure the W3 Total Cache

After installing the W3 Total Cache, it is important to configure it correctly in order to get the most out of it. Configuring the W3 Total Cache lets you set up the server files cache, minifying JavaScript and CSS files, which means you make them smaller and faster to load. Also, it allows you to configure the Content Delivery Network (CDN) that copies the server files onto servers from various locations so they reach users more quickly. The configuration process is pretty easy; you choose configuration options that allow server file caching.

Configure the W3 Total Cache

9781118470664-fg1209.eps

001Position your mouse pointer over Performance.

002Click General Settings in the pop-up menu.

9781118470664-fg1210.eps

The W3 Total Cache settings appear.

003Click Disable in the General section.

This disables the Preview mode.

004Scroll down to the Page Cache section.

9781118470664-fg1211.eps

005In the Page Cache section, click the Enable option under the Page Cache section (9781118470664-ma004 changes to 9781118470664-ma005).

006Click the Enable option under the Minify section (9781118470664-ma004 changes to 9781118470664-ma005).

007Click the Manual option under the Minify mode (9781118470664-ma006 changes to 9781118470664-ma007).

008Scroll down to see more Minify settings.

9781118470664-fg1212.eps

009Click the Minify Cache Method pop-up menu and select Disk.

010Click the HTML minifier pop-up menu and select Default.

011Click the JS minified pop-up menu and select JSMin.

012Click the CSS minified pop-up menu and select Default.

013Scroll down to the Database Cache section.

TIP

What is the Content Delivery Network?

The Content Delivery Network (CDN) is a number of distributed servers that are located in different places. These servers are known as data centers and are used to multiply data on the Internet. When a user visits a website with CDN service enabled, the CDN delivers the content to the user from the nearest available data center. This can increase the availability of content and website performance, especially for websites that receive a lot of traffic or deliver large-size media files, such as live streaming media, videos, and applications. Usually, the website owner pays for the CDN service based on the bandwidth users request from the CDN data centers.

In addition to the general settings in the W3 Total Cache plugin, you can find advanced settings at the top of the plugin settings page. These advanced settings include more options for server performance and handling files on the server. The advanced features include page cache options, minify options, database cache options, browser cache options, and CDN information that you can set by integrating the website with a CDN provider. If you are not familiar with the advanced options, you can simply set the plugins’ general information, which is good enough to improve your website performance.

9781118470664-fg1213.eps

014In the Database Cache section, click the Enable option (9781118470664-ma004 changes to 9781118470664-ma005).

015Click the Database Cache Method pop-up menu and select Disk.

016Scroll down to the Object Cache section.

9781118470664-fg1214.eps

017In the Object Cache section, click the Enable option (9781118470664-ma004 changes to 9781118470664-ma005).

018Click the Object Cache Method pop-up menu and select Disk.

019Click the Enable option (9781118470664-ma004 changes to 9781118470664-ma005) under the Browser Cache section.

020Scroll down to Miscellaneous.

9781118470664-fg1215.eps

021In the Miscellaneous section, click the Verify rewrite rules option (9781118470664-ma004 changes to 9781118470664-ma005).

022Click to deselect the Enable file locking option (9781118470664-ma005 changes to 9781118470664-ma004).

023Click the Optimize disk enhanced page and minify caching for NFS option (9781118470664-ma004 changes to 9781118470664-ma005).

024Click the Enable news dashboard widget option (9781118470664-ma004 changes to 9781118470664-ma005).

025Click the Enable Google Page Speed dashboard widget option (9781118470664-ma004 changes to 9781118470664-ma005).

026Click Save All settings.

9781118470664-fg1216.eps

The plugin settings are saved.

TIP

How do I integrate CDN with W3 Total Cache?

To use the CDN service on your website, use a caching plugin such as W3 Total Cache. You can register your website with the CDN provider to receive an API ID, API Key, and host name. API is the Application programming Interface that is used to link your server with the CDN service. This host name replaces the current path for all your website files. You need to enable the CDN from the W3 Total Cache setting and set it to use the desired CDN services. Then, you can access the CDN settings and add the API information to the required fields.

Set Up the All in One SEO Plugin

The All in One SEO plugin is the best tool for optimizing not only the WordPress website home page, but also the inner post pages. It allows you to add a title, description, and keyword Metadata dynamically, without needing to add it manually for each page. You can set up the global options for the All in One SEO from the plugin settings page and you can set up the SEO Metadata for each individual post from each post-editing page. In order to use this plugin, you have to install it from the Plugins section on the WordPress admin page or through FTP.

Set Up the All in One SEO Plugin

Set the Global Metadata

9781118470664-fg1217.eps

Note: To perform this exercise, you must install the All in One SEO plugin.

001Position your mouse pointer over Settings.

002Click All in One SEO in the pop-up menu.

9781118470664-fg1218.eps

The Plugin settings appear.

003Scroll down to the Plugin Status section.

004Click the Enabled option (9781118470664-ma006 changes to 9781118470664-ma007).

005Type the website title Metadata.

006Type the website description.

007Type the website keywords.

008Scroll down to the usage checklist.

9781118470664-fg1219.eps

The usage checklist is revealed.

009Click to deselect the Use Categories for META keywords option (9781118470664-ma005 changes to 9781118470664-ma004).

010Click the Use Tags for META keywords option (9781118470664-ma004 changes to 9781118470664-ma005).

011Click the Dynamically Generate Keywords for Posts Page option (9781118470664-ma004 changes to 9781118470664-ma005).

012Click the Use noindex for Categories option (9781118470664-ma004 changes to 9781118470664-ma005).

013Click the Use noindex for Archives option (9781118470664-ma004 changes to 9781118470664-ma005).

014Click the Use noindex for Tag Archives option (9781118470664-ma004 changes to 9781118470664-ma005).

015Click to deselect the Autogenerate Descriptions option (9781118470664-ma005 changes to 9781118470664-ma004).

016Click the Capitalize Category Titles option (9781118470664-ma004 changes to 9781118470664-ma005).

017Scroll down to the end of the page

The end of the setting page appears.

9781118470664-fg1220.eps

018Click Update Options.

The plugin settings are saved.

TIP

Which optimized All in One SEO settings should I choose?

The most important All in One SEO plugin global settings are Title, Description, and Keywords, because they appear on the website home page Metadata code. When you type this information, it should include important SEO keywords and follow SEO standards. For example, the title page should be descriptive, yet limited to 70 characters; otherwise, Google will omit the extra characters from the search results. The description should provide general information about the website and should be limited to 155 characters. The last Metadata setting is Keywords, which includes the important keywords in the website. Try to keep the number of keywords as limited as possible; otherwise, it is considered stuffing.

In addition to the All in One options in the plugin setting page, you can apply unique title, description, and keyword Metadata for each post or page that you create for the WordPress website or blog. In the new post page, you can find a section that enables you to set up unique Metadata for this specific post. This unique SEO information increases the page’s optimization and its chance of appearing in the search engine results page.

Set the Posts Metadata

9781118470664-fg1221.eps

001Position your mouse pointer over Posts.

002Click Add New in the pop-up menu.

9781118470664-fg1222.eps

The Add New Post page appears.

003Type the title of the post.

004Type the content of the post.

005Scroll down to the All in One SEO Pack section.

9781118470664-fg1223.eps

The All in One SEO Pack section appears.

006Type the title.

007Type the description.

008Type the keywords.

009Scroll up to the top of the page.

9781118470664-fg1224.eps

010At the top of the Add New Post page, click Publish.

The new post is published with the specified Metadata applied.

TIP

Can I apply All in One SEO optimization to both pages and posts?

Yes, you can choose to display the All in One SEO Pack section to both posts and pages or either of them. You can set up this in the All in One SEO options from the WordPress settings. While the posts are the main form of content in WordPress, many SEO experts focus on optimizing the posts. The best practice is to optimize all the content on your website.

Set Up Permalinks

The default WordPress URLs are usually numbered and include question mark signs, which means they are search engine optimized less frequently and harder for visitors to recognize. Permalinks help you customize how WordPress generates the URLs for the new posts once you publish them. Instead of using numbers, you can set up WordPress to display the post title, category, or publishing date. You can access the Permalinks from the WordPress General Settings page and customize how you want the post and page URLs to appear.

Set Up Permalinks

9781118470664-fg1225.eps

001Click Settings on the WordPress admin page.

9781118470664-fg1226.eps

The WordPress General Settings page appears.

002Click Permalinks.

9781118470664-fg1227.eps

The Permalink Settings page appears.

003Click the Post name option (9781118470664-ma006 changes to 9781118470664-ma007).

004Click Save Changes.

9781118470664-fg1228

The Permalinks setting is saved.

TIPS

Which is the best Permalinks setting for SEO?

The URLs are important factors in post indexing. They should include the important keywords in your post. So, it is best to set the /%postname%/ post name for permalinks if you want to add it to the custom field. This option sets the URL like the post title, but separated by dashes.

Will the Permalinks updates apply to the old posts?

Yes, when you change the Permalinks from numbers to the post name or other options, old archived posts are updated as well. To confirm this, check the URLs of older posts and see how they have changed.

Install the SEO Friendly Images Plugin

Optimized images can help your website or blog to display in search engines when users type keywords related to your image. You can optimize the images through their image names, size, and Metadata, such as the Alt and Title tags. As with the All in One SEO plugin, you can use the SEO Friendly Images plugin to optimize the images in your WordPress website easily and automatically. You can also use it to automatically add Title and Alt tags for images and set up these tags to be the same as the name of the post or the image.

Install the SEO Friendly Images Plugin

9781118470664-fg1229.eps

Note: To perform this exercise, you must install the SEO Friendly Images plugin from the Add New page under the Plugins section.

001Type www.seofocus.net/wp-login.php/ in your web browser and press ent.eps.

002Type your username.

003Type your password.

004Click Log In.

9781118470664-fg1230.eps

The WordPress Dashboard page appears.

005Click Settings.

9781118470664-fg1231.eps

The General Settings page appears.

006Click SEO Friendly Images.

9781118470664-fg1232.eps

The SEO Friendly Images plugin settings appear.

007Scroll down to the Images options section.

008Type %title in the Alt field.

009Type %name in the Title field.

010Click Update options.

The plugin settings are saved.

TIP

How do I upload an image to a WordPress post or page?

You can upload images to a WordPress post or page in two ways. The first is by clicking the Upload/Insert button on the new post page. The second is through the FTP client in the /wp-content/uploads folder. You insert the image in the post using the HTML tag <img src="image path" /> and then add this code to the post using the HTML viewer.