Add A Sitemap To Your Wordpress Blog
Chris over at Pearsonified has put together a great way to add an xhtml sitemap to your blog.
In a nutshell you open your page.php and edit it with some code Chris lets you download so your sitemap matches your blogs theme. Go look at my sitemap then hit your back button and come back.
Done? Ok kewl.
The only editing I did different was to remove the number of comments after each post title, otherwise it is just like Chris laid out.
If you want to remove those look in the sitemap file for a line that has comments_number in it. in my curren theme it was on line 26, depending on your theme yours will vary!
I just commented out < ! -- --> from the strong html tag to the /strong tag. The reason I commented it out instead of removing the code was in case I wanted to add it back in later, all I have to do is delete a couple pieces of code and the comment number is back without having to search for the original php file and copy/paste it back in.
I have an xml sitemap, why would I want an xhtml sitemap too?
Chris answers this:
“The XML sitemap is a tool that is specifically designed to help Google (and other search engines) refine how often it should crawl your site.
Here’s what Google says about XML sitemaps:
By submitting a Sitemap file, you can take control of the first part of the crawling/indexing processes: our discovery of the pages.
This may be particularly helpful if your site has dynamic content, pages that aren’t easily discovered by following links, or if your site is new and has few links to it.
The XHTML sitemap, on the other hand, serves two purposes:
- It ensures that all the pages of your site are interlinked (which Google says is helpful for crawling).
- It can serve as a useful tool for users, especially if they can’t find what they’re looking for through any other avenue of discovery.
 :
Stumble it!


Sep 16th, 2008 at 1:35 pm
[...] Add A Sitemap To Your Wordpress Blog at Wordpress123.comWordpress Tutorials Tips Tricks Monetization Plugins and using Wordpress Chris over at Pearsonified has put together a great way to add an xhtml sitemap to your blog. [...]