Codex Resources
Search Engine Optimization for WordPress
WordPress, straight out of the box, comes ready to embrace search
engines. Its features and functions guide a search engine through the
posts, pages, and categories to help the search engine crawl your site
and gather the information it needs to include your site within its
database.
WordPress comes with several built in search optimization tools, including the ability to use .htaccess to create apparently static URLs called permalinks, blogrolling, and pinging. There are also a number of third party plugins and hacks which can be used for search engine optimization (SEO).
However, once you start using various WordPress Themes and customizing WordPress
to meet your own needs, you may break some of those useful search
engine friendly features. To maintain your WordPress site's optimal
friendliness towards search engine spiders and crawlers, here are a few
tips:
- Good, Clean Code
- Make sure your site's code validates. Errors in your code may prevent a search engine from moving through the site successfully.
- Content Talks
- Search engines can't "see" a site. They
can only "read" a site. Pretty does not talk to a search engine. What
"talks" to a search engine are the words, the content, the material in
your site that explains, shares, informs, educates, and babbles. Make
sure you have quality word content for a search engine to examine and compare with all the parts and pieces to give you a good "score".
- Write Your Content with Searchers in Mind
- How do you
find information on the Internet? If you are writing something that you
want to be "found" on the Internet, think about the words and phrases
someone would use to find your information. Use them more than once as
you write, but not in every sentence. Learn how search engines scan
your content, evaluate it, and categorize it so you can help yourself
get in good favor with search engines.
- Content First
- A search engine enters your site and, for the most part, ignores the styles and CSS.
It just plows through the site gathering content and information. Most
WordPress Themes are designed with the content as close to the top of
the unstyled page as possible, keeping sidebars and footers towards the
bottom. Few search engines scan more than the first third of the page
before moving on. Make sure your Theme puts the content near the top.
- Keywords, Links, and Titles Meet Content
- Search
engines do not evaluate your site on how pretty it is, but they do
evaluate the words and put them through a sifter, giving credit to
certain words and combinations of words. Words found within your meta tag keywords
listings and within your document are compared to words found within
your links and titles. The more that match, the better your "score."
- Content in Links and Images
- Your site may not have
much text, mostly photographs and links, but you have places in which
to add textual content. Search engines look for alt and title
in link and image tags. While these have a bigger purpose of making
your site more accessible, having good descriptions and words in these
attributes helps provide more content for search engines to digest.
- Link Popularity
- It is not how good your site is, it
is how good the sites are that link to you. This still holds weight
with search engine favoritism. It's about who links to you. Blogrolls, pingbacks, and trackbacks
are all built into WordPress. These help you link to other people,
which gives them credit, but it also helps them link to you, connecting
the "links." The number of incoming links your site has that have been
recognized by Google can be checked by typing link:www.yoursite.com into Google (other search engines have similar functions). Other ways to generate incomming links to your site include:
- Add your site's url to your signature on forum posts on other sites.
- Submit your site to directories (see below).
- Note: Leaving comments on blogs will not help with this, since all modern blogging tools use the rel="nofollow" attribute. Don't be a comment spammer.
- Good Navigation Links
- A search engine crawls through your site, moving from page to page. Good navigational links
to the categories, archives, and various pages on your site will invite
a search engine to move gracefully from one page to another, following
the connecting links and visiting most of your site.
Search Engine Site Submissions
There are many resources that will "help" you submit your site to
search engines. Some are free, some for a fee. Or you can manually
submit your site to search engines yourself. Whatever method you choose
to use, once your site has been checked for errors and is ready to go, search engines will welcome your WordPress site.
Here are some tips for successful site submissions:
- Make sure you have content for search engines to scan. In
general, have more than 10 posts on your site to give the search
engines something to examine and evaluate.
- Do not submit your site to the same search engine more than
once a month or longer, depending upon their criteria, not your
anxiousness to be listed.
- Have ready to type, or copy and paste, a description of your
site that is less than 200 words long, the title of the site, and the
categories your site may belong to in a search engine directory.
- Have a list of your website's various "addresses/URLs"
ready. You can submit your root directory as well as specific
categories and feeds to search engines, expanding your search engine
coverage.
- Keep a list of the various search engines and directories
you submit to so you do not accidentally resubmit too soon, and you can
keep track of how they include you among their pages and results.
Directory Sites
It is also useful for traffic generation and search optimization
purposes to submit your site to directories. Both comprehensive
directory sites and those specific to the subject or localisation of
your site can be used.
DMOZ.org
this is the most important directory - it's content is licensed in an
open fashion allowing it to be syndicated through out the web -- its
content is also used directly in some fashion by almost all of the
major search engines.
Search Engine Optimization Resources
While WordPress comes ready for search engines, the following are
more resources and information you may want to know about preparing and
maintaining your site for search engines' robots and crawlers.
Meta Tags
Meta Tags
contain information that describes your site's purpose, description,
and keywords used within your site. The meta tags are stored within the
head of your header.php template file. By default, they are not included in WordPress, but you can manually include them and the article on Meta Tags in WordPress takes you through the process of adding meta tags to your WordPress site.
The WordPress custom fields option can also be used to include keywords and descriptions for posts and Pages.
There are also several WordPress Plugins that can also help you to add
meta tags and keyword descriptions to your site found within the Official WordPress Plugin Directory.
Robots.txt Optimization
Search Engines read a yourserver.com/robots.txt file to get
information on what they should and shouldn't be looking for, and
where.
Specifying where search engines should look for content in
high-quality directories or files you can increase the ranking of your
site, and is recommended by Google and all the search engines.
An example WordPress robots.txt file:
User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads
# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*
# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*
# Internet Archiver Wayback Machine
User-agent: ia_archiver
Disallow: /
# digg mirror
User-agent: duggmirror
Disallow: /
Sitemap: http://www.askapache.com/sitemap.xml