the-deuce.jpg

Use an XHTML Sitemap for Better Indexing

As a Webmaster, one of the things you always need to be aware of is how well your the pages of your site are interlinked. This is a crucial factor in overall search engine performance, and simply assuming that your architecture is robust enough to handle this is definitely not the route you want to take.

Over time, you will likely accumulate tons of pages, and as this happens, the odds of certain pages getting buried to the point of becoming nearly inaccessible tend to go up.

To combat this, you can generate an XHTML sitemap that contains links to every page of your site.

Update: I no longer recommend or use an XHTML sitemap, and that’s why I’ve removed the sitemap links from this article. Search engines and technology have improved, and at this point, an XML sitemap is the way to go.

Now, some of you may be thinking that your archives essentially solve this problem, but in a vast majority of cases, you’d be wrong :)

Typically, WordPress archive pages (and other CMS archive pages, for that matter) do not contain links to all of your internal Pages and available syndication feeds. On top of that, most archives also fail to link to every Post like I do on my archives page. Edit: Link removed because I no longer run my archives page in this manner.

A properly-constructed XHTML sitemap solves this problem.

Why? Because Google Said So

In its Webmaster Guidelines, Google touts the merits of adding a sitemap to your site.

  • Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link.
  • Offer a site map to your users with links that point to the important parts of your site.

I’d like to add that I’ve always looked at sitemaps as a helpful tool for the user. Some sites have confusing (read: poor) architectures, and oftentimes, it’s just easier to hit the sitemap and find what you need from there.

Bottom line — including a sitemap is easy, it’ll help your users, and it’s a great way to ensure that all the pages of your site are interlinked.

Download the XHTML Sitemap Generator Template for WordPress

XHTML Sitemap Download Icon

Implementing an adequate sitemap is a simple task with WordPress, and to assist you with this, I’ve created a handy little XHTML sitemap generator.

No matter what theme or template you are using on your site, this XHTML sitemap will work (as long as you’re running WordPress). Best of all, you can easily activate your new sitemap by following these steps:

  1. Upload sitemap.php to your active WordPress theme directory.
  2. In your WordPress administration panel, go to Write and then to Write Page.
  3. Fill in a title (it can be anything you want), do not enter anything into the text area of the post, and create a Post Slug called “sitemap.”
  4. Most important, from the Page Template dropdown box, select the Sitemap template.
  5. When you’re done, click on Create New Page.

The only catch is that the resulting page will be stripped of all styles, so there will be a bit of a visual disconnect between the sitemap and the rest of your site.

Check out what I mean in this sitemap example. Edit: Link removed.

Simple Styling Tutorial to the Rescue!

The good news, however, is that you can easily “style” your sitemap, even if you’re not that familiar with WordPress theme files, PHP, or XHTML.

So, if you want your new sitemap to blend nicely with the rest of your site, here’s what you need to do:

  1. Open up your page.php file from your current WordPress theme 1, and save it as a new file — call it new_sitemap.php 2.
  2. In the new_sitemap.php file, delete all the code that lies between this snippet:

    <?php
       if (have_posts()) :
          while (have_posts()) :
             the_post();
    ?>
    

    and this one:

    <?php
          endwhile;
       endif;
    ?>
    
  3. Open up my sitemap.php file (download it here), and copy all of the code that lies between the opening and closing <body> tags.
  4. In the new_sitemap.php file, paste the code that you just copied in between the two lines of code indicated in point #2.
  5. Finally, in the new_sitemap.php file, add this code at the very top of the file:

    <?php
    /*
    Template Name: New Sitemap
    */
    ?>
    
  6. Save new_sitemap.php and upload it to your server.
  7. Follow the instructions above, except in step #4, choose the New Sitemap template.

Now, quit reading this, and go bask in all your Google-compliant glory!

1 If your theme doesn’t have a page.php file, then it totally sucks. Get a real theme and put yourself on the path to righteousness.

2 My downloadable XHTML sitemap file is called sitemap.php, so I used new_sitemap.php in this example to differentiate between the two.

Take the Next Step!

  1. Share this on Twitter:
  2. Share this on Facebook:
  3. Submit it to StumbleUpon
  4. Bookmark it on Delicious

218 comments… read them below or add one

Mark Forrester December 6, 2006

Thanks Chris. So you recommend we have both an xml sitemap, and an xhtml site map for our site?

I’ve just installed the Google sitemap generator you specified in your first “SEO for everybody” article.

What are the differences between the two according to Google?

Reply

Chris P. December 6, 2006

Mark,

Yes, I recommend that you use both because the two formats each serve a different purpose.

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:

  1. It ensures that all the pages of your site are interlinked (which Google says is helpful for crawling).
  2. 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.

Reply

Mark Forrester December 6, 2006

That makes sense :)

Thanks for the speedy reply Chris.

Reply

Chris P. December 6, 2006

If any of you have already downloaded this file, please download it again.

I caught a mistake — I hadn’t linked back to the home page!

No worries, though, as the new file is uploaded and ready to go.

Reply

Big Roy December 6, 2006

Thanks Chris, as always you make it so anyone can understand. I’m going to try and add a sitemap page this weekend.

Reply

Mike December 6, 2006

You rule O’ Great & Mighty Themedude !

Once again I bow down to your details of attention.

Reply

shawn blanc December 6, 2006

Wow, that took me about 5 minutes. Thanks for the help.

Only issue is I don’t want the sitemap page listed in with all my other pages, any idea how to take that out without manually coding in links?

Reply

Chris P. December 6, 2006

Shawn,

You can exclude pages by following the example shown on this page of the WordPress Codex.

Use the code from their example, but end the statement after title_li=. That way, it’ll work just like it does now.

Reply

Dean December 7, 2006

Thanks for all the information. Any idea what is wrong with my sitemap? I just get an unformatted block of XML.

I’ve tried both the sitemap and new_sitemap approaches.

http://technical-itch.co.uk/sitemap/

Thanks.

Reply

Dean December 7, 2006

I’ve sorted it now. I was entering the post slug as

sitemap.

without the surrounding quotes, rather then “sitemap.”

This looks great now. Thanks :-)

Reply

John Richardson December 7, 2006

Simple, Quick, and Easy! You should put an Easy Button on your sidebar just like Staples.

I can’t wait to see what you come up with next…

Great Stuff!

John

Reply

Scott secor December 7, 2006

Hi Chris,

I followed the directions for the site map page creation! Thanks for the great tip! Can you peek at my sitemap page and let me know if it looks okay or if I need to tidy it up a bit with the coding. To me it looks cramped a bit!

Thanks again!

Reply

John Wesley December 7, 2006

Thanks for the tip and instructions Chris. I really appreciate the info you put up here. I’m also a Cutline user. What a great theme! And you tell us how to get the most out of it.

I’m totally with you on the new media idea.

Reply

dave shields December 7, 2006

Hi,

I know this may not be the best place, but I just wanted you to know that I love your theme Cutline and will be using it for the forseeable future.

See my story about the Cutline header image.

Reply

Griffin December 7, 2006

Thanks for the info!

Uhm…I uploaded the sitemap…I am unable to find ‘page template’ for the Write Page option.

Reply

Griffin December 7, 2006

Nevermind! Fixed it!

Reply

Chris P. December 7, 2006

Scott — You high class aficionado, you…Don’t use that sitemap. Use this exclusive one that I built for Cutline users!

Dave — I love that story! Whoda thunk my little header image would’ve been recognized by someone out there. Great stuff!

Griffin — Way to work it.

Reply

Ben December 7, 2006

Great work as always, Chris. May your children rise up and call you blessed. ;)

Reply

Scott Secor December 7, 2006

Chris, what can I say….once again you have made life so much easier! The sitemap.php you made for Cutline works like a charm!

You are an invaluable resource to all!

Happy Holidays to you and your family!

Reply

Chris P. December 7, 2006

Ben — Love the implementation. Your site is killin.

Scott — Looking great! I like how you fixed up your navigation links to fit on one line, too.

Reply

Griffin December 8, 2006

Ack! My theme doesn’t have a page.php file.

Any suggestions (besides changing to Cutline in the future) :)?

Reply

Chris P. December 8, 2006

Griffin,

Well you asked for this:

Your theme totally sucks :)

Aside from that, I recommend that you take a look at the page.php architecture from Cutline, and then compare that to the index.php architecture from your current theme.

By meshing the two files, you ought to be able to come up with a page.php file for your current theme, and in the process, you’ll be able to create your own sitemap.php file as well.

It’s not a whole heck of a lot of work, but there may be a bit of confusion and/or uncertainty in store for you.

This is why I’m always touting the benefits of a well-constructed theme :)

Reply

Mike December 8, 2006

What theme is that Griffin ?

Reply

Alex December 8, 2006

I’m using your XHTML sitemap now- kudos!

Reply

Marios December 8, 2006

There’s another plugin out there that does the same thing (or at least it’s very close). It’s called Dagon Design Sitemap Generator. You activate the plugin and then drop a tag in to a page. The styling is all taken care of because the sitemap is really just another page on your blog.

Reply

roadsofstone December 8, 2006

Hi Chris – that looks great.

Just one question – can it be made to work on my WordPress.com site (which uses Cutline), or only on a site loaded to WordPress.org ?

Reply

Griffin December 8, 2006

Thanks for the (ahem) constructive criticism :p …I’ll check with my go-to grrl…

The theme is: Ads Minded Theme found at:

http://www.sapiensbryan.com/

Reply

Chris P. December 8, 2006

Marios,

I was aware of the Dagon Design Sitemap Generator’s existence before I wrote this post. In fact, the entire reason I wrote this post is because I felt like that plugin was not appropriate for the masses.

I dislike the Dagon Design plugin because it forces posts to be displayed under the category within which they were published. This is something that I fundamentally disagree with, and I’m happy to explain why.

Categories are used improperly all over the Web. In their purest form, they should be used to control how content is displayed.

Tags, on the other hand, are for organizing, slicing, and dicing content for public consumption.

In fact, MovableType 3.3 includes out-of-the-virtual-box support for categories and tags…Can you guess the function that each serves individually?

In the context of a sitemap, I don’t think it’s appropriate to dissect your database in this manner. By definition, a sitemap is merely supposed to be a listing of all of the pages of your site.

Why, then, if you’re going for basic Google compliance, would you introduce an element that is not used consistently by everyone?

The only thing I can guarantee you that every WordPress user has on his or her site is a collection of Posts and Pages.

Whether you are producing themes or plugins, your goal should always be to cast an umbrella over the widest range of users. I hold the opinion that my XHTML sitemap does this better than the Dagon Design plugin, and that’s precisely why I created it.

Reply

Marios December 8, 2006

Chris,

Thanks for the response. I did try to determine the differences between your method and Dagon’s, but the differences, or rather the purpose of the differences, wasn’t obvious to me. But now I know and I’ll have to take a closer look.

Reply

Mike December 9, 2006

Ads Minded is a great name for that jumbled mess.

Sorry.

Reply

Ajay D'Souza December 9, 2006

Hi,

Thanks for the Page Template. I noticed that you are using alt attribute for a in the Feed section.
This is incorrect according to XHTML 1.1. You need to use title instead.

Reply

Chris P. December 9, 2006

Ajay,

I was just thinking about this topic yesterday, so it’s funny you should stop by and say this.

You’re dead on, of course, and thanks for the heads-up!

Reply

Mike December 9, 2006

Does this mean you’ll be altering the theme ?

Should I wait to dload the entire package ?

If so, let me know when to dload, as I have a couple of blogs to build, after we migrate our sites to a new server, later this weekend.

4GB of RAM w/ dual SCSI 73GB Drives !

Reply

Ajay D'Souza December 9, 2006

I decided to go ahead and implement your sitemap on my blog, when I noticed this.

Also plan on releasing a page template based on this for my theme.

Really useful.

Nice tips out here Have subscribed to your blog feed :)

Reply

Chris P. December 9, 2006

Mike,

There’s no way I’ll have it done this weekend, but yeah, at some point, I’ll be changing the theme. I’ve seen a few examples lately of themes that can be changed and easily upgraded. I’ll need to modify Cutline to go that route in the future.

That is a beast of a server. I’ll take two.

Reply

Mike December 9, 2006

I’m not on that tight of a deadline.

Might be next weekend before I get around to the actual theme-work.

The email I sent you showed all that I have coming.

I’ll check with you before then, as Cutline is the only way to go.

Reply

Chris P. December 9, 2006

That’s what I like to hear ;)

Reply

Ian Delaney December 9, 2006

Hey Chris,

Any chance of you sharing the secret to producing the ‘text only’ links to aggregator and bookmarking services you use? I really envy them, but am a Wordpress cretin.

Ian

Reply

Adrian December 10, 2006

Solid! thanks a bunch.
Great blog!

Reply

David Krug December 11, 2006

Thanks for the helpful resource. :)

Reply

Chris P. December 11, 2006

Ian,

I will likely do a mini-tutorial on those in the very near future. It’s a great idea for a post, and I’m a little upset that I didn’t think of it myself!

Reply

Ozan December 11, 2006

Great work Chris,
but maybe you may consider include a page option, because if we have 300+ posts, googlebot could think us as a spam blog or something like it.

150 – 200 links per page will be great.

Reply

Chris P. December 11, 2006

Ozan,

Excellent point. I need to delve a little further into that and see if I can force pagination after X number of links.

Reply

CHIPizan December 12, 2006

Most important, from the Page Template dropdown box, select the Sitemap template.

Where in the world do I find that on the page? For which version of WP is dis written for ne way?

Reply

picli December 12, 2006

Excellent!!!!

Reply

Ian Delaney December 12, 2006

“I will likely do a mini-tutorial on those in the very near future. ”

Excellent. Look forward to it.

Reply

Nate K December 12, 2006

Now couple the generation of this page with the generation of a sitemap.xml file (www.sitemaps.org) and it would be perfect. You could hit everything in one fell swoop.

Reply

RSL December 12, 2006

Great tips and, I gotta say, great layout! I really like your style.

Reply

Yual December 12, 2006

Hi Chris,

I found out about you and your cutline theme from wordpress.com

Your cutline theme that is preinstalled in wordpress.com is great except for one thing…

The smiley face you put in the footer will tend to appear at the TOP right hand side of the page in Mozilla Firefox, which is so FUGLY.

Can you do like remove it please?

It spoils the whole theme.

Reply

Rob December 12, 2006

Brilliant add-on. Thanks very much. I’ve added it to my site to compliment my xml sitemap and archive pages.

I’ve also added your add-on to my Wordpress Plug-ins/Add-ons Page > http://www.abouthere.co.uk/blog/?page_id=498

Cheers!

Reply

Chris P. December 12, 2006

Chip — This tutorial is intended to serve those folks running WordPress 2.0 or higher. Something tells me you were on the Write Post tab instead of the Write Page tab, though.

Nate K — Now why didn’t I think of that? :)

RSL — Thanks very much! Your site has a heck of a nice style, as well. I especially like the progressive tints of gray in the would-be comments area.

Yual — That stupid smiley is something that WordPress.com places on every site. It gets inserted in the wp_footer(); hook, and unfortunately, that hook is in the wrong place in the WordPress.com file. Sadly, I cannot change it—only the WP.com folks can do that.

Rob — Awesome! Thanks!

Reply

Lane December 12, 2006

Thanks for some nice tools, Chris. Does Google disapprove of your efforts? I ask because the Firefox Search Status says this page has a PageRank of 0!

Reply

Chris P. December 12, 2006

Lane,

This particular page has not existed long enough to draw a Google PageRank.

Once the next update comes around, I expect that this one will pull a PR5, or perhaps even 6.

The home page of this site is currently a PR 5, and a lot of PageRank predictors are saying that it will be a PR 7 on the next update.

So in short, Google likes me. It really, really likes me.

Reply

Robert Simpson December 12, 2006

Better yet, you can do the styling of the XHTML with the same template used for the rest of your site, so that the entire site has the same look and feel. Putting the common elements of the site in a separate template has the added advantage that those elements can be cached by the browser, typically saving 50% in bandwidth costs. See an example at http://Sample.mobi/ and the “how to” at http://www.ToGuides.com/howto/internet/xml/templates.xml

If you’d be interested in updating your example, let me know. Once the template is created (or copied from the “how to”), it’s as simple as adding the stylesheet processing instruction at the top of each page.

You can also use the same type of templates to “transform” the XHTML sitemap and produce one in XML format, or vice-versa, to avoid having to create both versions separately. This is known as “Single-Source Publishing”, publishing content in multiple formats from the same content source. See
http://www.Accilent.com/technologies.xml#standards

Reply

Brian Carnell December 12, 2006

Interesting, but you have a relatively new site and a very small number of posts. What would you recommend doing if a sitemap of all internal pages would return, say, 2000 links?

Reply

Chris P. December 12, 2006

Brian,

The sitemap should really be paginated, I guess. I am going to look into a solution for that eventually.

Reply

Chris P. December 12, 2006

Robert,

Did you read the entire post? After I introduce the unstyled example, I go on to explain how you can make the formatting mesh with your site.

In its current state, there is no way for me to make this sitemap work for every WordPress theme out there. In order to do that effectively, I’ll need to turn this into a WordPress plugin, which is something that I intend to learn in the early part of next year.

As for the single-source publishing, that’s a great idea, and one that has been suggested a couple of times in this very comment thread. Thanks for the reference tip.

Reply

CHIPizan December 12, 2006

I’m quite sure i was in the Write Page … and i know i didn’t find any such Page Template drop down.

Did you create a custom field ? Or did you install a plugin for that ?

Reply

Chris P. December 12, 2006

WordPress Page Template Dropdown BoxNope, it’s the default setup for WordPress. It looks like this:

Reply

CHIPizan December 12, 2006

Like whoa ! I’m missing that in ALL my blogs (setup through cpanel)…..

Any way i can get it ?

Reply

Chris P. December 13, 2006

Chip,

It’s quite possible that the theme you’re using does not come equipped with a page.php file, and therefore, you wouldn’t be able to see the Page Template selector.

Try switching to Cutline just to see if that option appears for you. If it doesn’t then I recommend calling your hosting company, because anything less than a fully-functional WordPress would be uncivilized :)

Reply

CHIPizan December 13, 2006

So, is there any way i can create it ?

Reply

Chris P. December 13, 2006

You can’t create that option, but you could try activating a theme that you know contains a file called page.php.

This would at least establish a stable test condition. If it turns out that this doesn’t solve the problem, then you know the issue is with your Web host, not with your theme.

Reply

David G. Paul December 13, 2006

I don’t use WordPress myself, but the considering the number of users out there I think a lot of people could benefit by heeding the advice in your article. Good work.

Reply

Manu Khanna December 15, 2006

Awesome stuff, very well laid out article. Thanks a BUNCH.

Reply

Slaff December 15, 2006

Thanks for very helpful tip!

Reply

Dasuquin December 16, 2006

I wish someone could make a tool to convert an xml sitemap to an xhtml sitemap, as well as to an rss (after all they are all based on xml)

Reply

Robert Simpson December 18, 2006

You don’t need a “tool” to convert XML to XHTML and RSS – just a couple of XSLT templates. We’re working on packaging a set of such stylesheets and templates under our “XML Styles” project – HowToGuides.com and TVSeries.com are two of the proof-of-concept sites.

Reply

Manu Khanna December 20, 2006

Thanks Chris. I have a silly question, am nw to all this so need to know.

If I add/delete post/page, will the sitemap get updated on its own?

Reply

Chris P. December 20, 2006

Yes,

The sitemap is generated dynamically each time it is called, so every time you view it, you’ll see the latest mix of posts and pages.

Reply

manu khanna December 20, 2006

Thanks for the prompt reply. Got another question, how do I increase the left margin? Visiting the following page will give u a better idea:

http://manukhanna.com/sitemap/

Reply

Chris P. December 20, 2006

Manu,

If you look at the XHTML for both your sitemap and your home page, you’ll notice that the sitemap code contains an extra instance of the <body> tag.

Presumably, you’ll be able to find this and remove it from the sitemap.php file that lies in your theme’s directory.

Reply

organizeher December 21, 2006

I LOVE THIS THEME.

Okay, had to say that – next, thanks for this sitemap. It went up in under 5 minutes. That is MY KIND of easy.

Reply

Chris P. December 21, 2006

Thanks! That’s how I roll… ;)

Reply

Nick Rice December 30, 2006

Chris, I must have something in the wrong place. I did the postslug and the template dropdown, but I keep getting a 404 error. Any ideas?

Reply

Chris P. December 31, 2006

Nick,

If you entered anything into the text field on the Write Page screen, it won’t work. Also, if you could, please provide me with the broken URL so I can see things in action.

Reply

Nick Rice December 31, 2006

Sure: http://www.nick-rice.com/sitemap/

Hope this helps.

Reply

Nick Rice January 1, 2007

BTW, I’m on WP 2.0.5 | K2 beta 2 & TrueBlue scheme if that makes a difference.

Reply

Ryan Velting January 6, 2007

I cannot thank you enough for making such valuable resources available to us. Very appreciated.

Reply

Ray Dotson January 7, 2007

Chris, I just got around to installing this on my blog and with a tiny bit of code tweaking it works and looks great. Thanks for the great site and all the great information!

Reply

Nick Rice January 9, 2007

For some reason, I cannot create a postslug called “sitemap.” (with the period at the end). It just defaults to sitemap without a period. Would this cause a 404 error.

And I just upgraded to WP 2.0.6, but I’m not sure that made a difference.

Reply

Chris P. January 10, 2007

Nick,

You don’t want the period at the end. Grammatical rules dictate that you must end the sentence with punctuation inside the closing quotation mark.

Reply

Nick Rice January 12, 2007

I did get it to work. I redownloaded your siteplan.php file and put a fresh copy on the server and everything worked fine.

This is a great tool. You’re a huge help.

Thanks

Reply

Chris P. January 12, 2007

Awesome! I’m glad it worked for ya.

Reply

Nick Rice January 13, 2007

I know this isn’t your theme or style, but you’ve been so helpful I thought I’d ask.

Here’s my working sitemap (http://www.nick-rice.com/%E2%80%9Csitemap%E2%80%9D) thank you!

Is there an easy way to indent the bulleted list? With the Trueblue scheme, the bullets fall right on the border. I’d like to scoot them in by 20px.

Reply

Rob January 23, 2007

This doesn’t work with WP2.1 for me.

It gets as far as generating the internal pages and stops. Are there plans to update it please?

Cheers,

Reply

Chris P. January 23, 2007

Rob,

I will definitely update this for WordPress 2.1 if I find out that it doesn’t work properly.

My guess is that the code used to generate some of the pages are deprecated, so I’ll have to see what’s been changed and then make the appropriate changes.

Thanks for the heads-up!

Reply

Jarlie T. January 27, 2007

Hey, Chris P. Thanks so much for this info on the xhtml sitemap. I couldn’t find the “sitemap” template until I moved the sitemap.php from the “themes” folder into the “default” subfolder (*smacks forehead), but I am good to go now!

Reply

Michael February 1, 2007

Chris,
You the man! Double kudos. I really like your very clear tutorials. Being a php newbie I had to twiddle with the code in theme Fall Season to get it to work since it used a different repeat structure.
I finally decided to replace it with

“”
from your code.
That did the trick.
see here the result. http://blogking.powweb.com/sitemap/

Looks great.
I also implimented your dynamic title code.
Thanks a bunch. You are on my must read list now. Keep up the great ideas.

Reply

Michael February 1, 2007

How do you comment code in this text box so it doesn’t disappear?

Reply

Chris Mitchell February 22, 2007

Hi Chris

I’ve been lurking on Pearsonified for several months now. This is an excellent addition to the Wordpress canon – kudos. I particularly like the way you always give a step by step, easy to follow process for people to install your stuff.

I’ve got my XHTML sitemap installed and working, with one caveat – it happily lists all the site files and then ends with

Topical archives:

“Fatal error: Call to undefined function: wp_list_categories() in [my file path] sitemap.php on line 49″

Is this because my theme sucks as well ? ;-)

Can I leave it alone and Google will still crawl it or does the error need to be fixed – and if so, can you please let me know how I can do it when you have time?

Thanks,
Chris

Reply

Chris P. February 23, 2007

Chris — The wp_list_categories() function only works in WordPress 2.1+. When the new version was released, I modified the original version of this Sitemap file in order to adapt to this function change.

I’m going to step out on a limb here and assume that you’re running an older version of WordPress, and if you replace wp_list_categories() with wp_list_cats(), you should get the result you’re after.

Reply

SifuPhil February 23, 2007

Chris – I’m so glad I Stumbled on your site!

So many times I’ve tried implementing a site map on WordPress; so many times I’ve ended up with nasty bumps on my forehead from banging it on the table.

You’ve truly got a Zen-type gift for making things effective and simple – and you’ve got a new dedicated reader.

Thanks again!

Phil

Reply

Mike February 24, 2007

Thanks so much, this is awesome. Worked exactly as described, had a site map up in a few minutes.

Reply

Chris Mitchell February 24, 2007

Hi Chris
– the wp_list_cats worked like a charm on my pre 2.1 Wordpress install – thanks for the quick response.

Might I suggest you might want to note that change in your step by step setup list, as there will still be a lot of pre 2.1 installs around for the next few months

Thanks again
Chris

Reply

lawton chiles March 3, 2007

I think I did it right.

Reply

Carl March 28, 2007

that was easy…

Reply

Michael Doig April 8, 2007

I have done this before with an older installation of wordpress, however I just upgraded to 2.1.2 and I’m not seeing the sitemap page template in the write page area.

Reply

Chris P. April 8, 2007

Michael — In all likelihood, you just need t0 upload the sitemap.php file to your active theme folder. I think you may have mistakenly overwritten your wp-content folder when you upgraded WordPress, and this would have nuked the old sitemap.php file.

Reply

Michael Doig April 8, 2007

Thank you, you are correct.

Reply

Cenk April 12, 2007

Hello. I installed the sitemap generator and it works fine except under the Topical Archives heading I get the following error message:
Fatal error: Call to undefined function wp_list_categories() in /home/cafeson6/public_html/wp-content/themes/fSpring Widget/sitemap.php on line 49
Any idea what may have caused it and how to fix it?

Reply

Matt Jones April 12, 2007

Hi Chris,
I have got the sitemap working (as you can see :D) but I have a problem with your symple styling tutorial.

When I open the sitemap.php it doesnt have:

or

in it at all so I cannot delete what is between them!

I really have know idea how that has happened, I followed your tutoral step by step… any ideas greatfully appreciated!

Thanks,

Matt

Reply

Matt Jones April 12, 2007

Darn it that code didnt show up (duh!) – anyway its the code in stage 2 that isn’t there.

Reply

Chris P. April 12, 2007

Cenk — You’ve installed the sitemap generator for WordPress 2.1+, but I’m betting that you need the one for WordPress 2.0.x. Grab the file here.

Reply

Chris P. April 12, 2007

Matt — Step 2 references page.php and not sitemap.php, so I think that might be the source of your confusion. Step 3 tells you what to do with the code from sitemap.php.

Reply

Eugene April 12, 2007

Thank you for the tutorial! Implemented it on my website.. :)

http://www.evsionlab.com/sitemap/

Great site btw. I bookmarked you!

Reply

Eugene April 12, 2007

One more thing! The DIGG icon, on this post. Is this a plugin? I was wondering if you would be able to let me know. Thanks

Reply

Matt Jones April 12, 2007

Chris,
thanks for your speedy reply!

It looks like you were right! .. sort of…

I WAS looking at the sitemap.php instead of the page.php (silly me) but there isn’t the code in stage 2 in page.php either. There is code similar to the first bit of code in stage 2, but the is no sign of the ‘endif’ stuff.

Any ideas? Maybe I have a weird theme…

Matt

Reply

Chris P. April 12, 2007

Matt — Instead of endif, look for a closing curly bracket }. That is another way to signify the end of an if statement.

Reply

Wauks April 12, 2007

This is simply superb!

Reply

Andrew April 13, 2007

Another awesome and easy improvement. Thank you again!!

Andrew

Reply

Steve April 14, 2007

Chris: Thanks for that quick XHTML Sitemap for Wordpress. I do have one question. How do I submit it to Google Analytics (which requires it in .xml)? I’ve tried submitting the URL link to my blog’s sitemap but Google Analytics kept rejecting it. Any ideas or do I just need to follow the steps required for Google?

Reply

Steve April 14, 2007

Chris: Sorry, after I posted my comment, I found your “When Was the Last Time You Talked to Google?” where you lead me to the Google Sitemap Generator (for the XML sitemap). Thank you so much again and please disregard my previous comment.

Reply

Strafverteidiger München April 18, 2007

Thanks for that quick XHTML Sitemap for Wordpress. Thans exactly what i wanted. Thanks.

Reply

Patrick April 19, 2007

I don’t seem to be able to get it to work. It shows up if I preview the page but when I publish I get a 404 error.

Also, how do I add the link to the top of the blog like on Chris’s?

Using Wordpress 2.13 with Cutline theme.

Reply

Robert April 25, 2007

I’ve attempted to install your site map generator. I’ve hit a snag, no Sitemap template. appears as one of the selctions in the Page Template dropdown box. I’me using Wordpress Classic as a starting point.
Whatever do I do?

Reply

Robert April 25, 2007

Okay. Disregard the previous post.
I followed the instructions. Duh!
Now I’m getting the 404 error message.
The page either isn’t being generated or put in the wrong place. The link is on page in the sidebar, however, I get the 404 error message when I click on the link.
What now?

Reply

Hunde April 27, 2007

That was simple.
Super description. Thanks

I’m using XHTML sitemap now

Reply

Jakob Montrasio April 27, 2007

Thank you, dude!
The script rocks, just installed it on my blog.
Works perfectly!

Reply

Jayvee May 11, 2007

I did all the things that you instructed here but why is it that the sitemap’s still not blending with the site template?

My site is http://katchatore.freehostia.com if in case you want to check. Thanks.

Reply

donno May 11, 2007

that a great plugin. i use it with my cutline theme.

Reply

ogrod May 22, 2007

where i can find thise good seo framwork for wordpress

Reply

Peter Beck May 25, 2007

Help.

I’m using Cutline 1.1 off of WP 2.1.3, and despite the sitemap.php directions being followed to the letter, I too, cannot get off the 404 screen of death: on the Write Page, every time I enter
“sitemap.”
under Page Slug and save, all that shows up again under Page Slug post save is
sitemap
no quotes or period inside the last quote.

Oddly, if the Page is saved as a draft, WP tantalizes me at the bottom with what looks like a preview of a perfectly formatted Cutline consistent sitemap.

Am I missing something?

Reply

Chris P. May 27, 2007

Ogrod — Here are a couple of good ones in the order that I’d recommend you try them:

  1. Copyblogger
  2. Cutline

Reply

Chris P. May 27, 2007

Peter — Right now, there are two pages with the page slug sitemap on your site. The second one is appended with -2 to differentiate it from the first, but since that’s not a desirable page slug, I recommend that you delete both of your sitemap pages and create a new one.

Reply

CLIFF May 31, 2007

Hello Chris

Thanks for this excellent theme, I’m a newbie to the world of blogging, for some odd reason I can’t seem to get my sitemap in order, at lease the way you have it on your site. I followed your steps above to the letter. I’m currently using wordpress 2.1.3 HELP

Reply

GarnetDavid June 14, 2007

Hey, thanks for the great plugin. One thing. I use the Google XML sitemap plugin, which uses the same file name sitemap.php, so I can only install in my plugins folder. One of you will have to change the name, I think. Perhaps I’m wrong, but if I upload yours, it will over write the other plugin, right? I’d like to use yours, but for now I’ll stick with the Google XML sitemap plugin.

thanks,
David

Reply

Chris P. June 14, 2007

GarnetDavid — The sitemap plugin that I recommend does not use sitemap.php. Instead, it makes use of sitemap.xml, which is recommended by Google.

So in theory, there should be no conflict—at least I’m not experiencing one on this site or any of my others that use both types of sitemaps.

Reply

GarnetDavid June 14, 2007

Chris- Thanks, I’ll give it a try.

David

Reply

lawton chiles June 14, 2007

Chris, since downloading copyblogger and cutline, i cannot seem to display my Links sidebar widget. there must be something i did to the code. any ideas?

thanks,

Lawton

Reply

GarnetDavid June 14, 2007

No Go for the xhtml sitmap. As per instructions, I uploaded the sitemap.php file to the root folder of my blog, but when I went to create the page, there was no sitemap template. So I uploaded the file to my blog’s theme folder, and was able to create the page using the sitmap template, but get a 404 for the page. Any help would be appreciated.
D

Reply

Chris P. June 14, 2007

GarnetDavid — Putting the file in your blog’s theme folder was the right move (specifically, in the Copyblogger theme folder). As far as you getting a 404 goes, try going to ManagePages, and then locate the Sitemap page. Click on View, and see what URL shows up in your address bar.

If you cannot locate the sitemap page, then it was never created successfully. If this is the case, simply try to create it again.

Reply

GarnetDavid June 14, 2007

Chris, I appreciate your help. I use the Triple K2 Theme. I created the page using the sitemap template, a slug sitemap and no text. The page created is my blog/sitemap/.

Shouldn’t it be sitemap.php? I deleted and created another, using sitemap.php as the slug, and it worked! Now I have to style it.

Reply

GarnetDavid June 15, 2007

The oddest thing, Chris- Of course, labeling the slug sitemap.php was silly, since that doesn’t translate into the slug name. But calling it sitemap definately did not work, perhaps because there are two files named the same. Naming it ANYTHING else then it worked.

Reply

Chris P. June 15, 2007

GarnetDavid — That all sounds pretty standard. If you delete all existing sitemap pages and start anew, you’ll be able to have your sitemap located at /sitemap, which I think is a preferable scenario.

Reply

GarnetDavid June 15, 2007

Chris- I haven’t solved it yet. Deleted all others, but no go. Even tried deleting the google one in plugins. Tried putting the sitemap.php file in different places, renaming the new_sitemap, putting both files in, since one is actually called sitemap. Nothing. I get a big “/muse/sitemap/ NOT FOUND on this server”, blank white. This doesn’t make sense at all.

By the way, I do have my blog in a subfolder, but it doesn’t affect any other pages.

Any suggestions?? I’d like to solve this, since the page slug should be right.
David

Reply

Chris P. June 15, 2007

GarnetDavid — You keep mentioning sitemap.php, but I’d like to make it clear that the only sitemap.php file you’ll be dealing with should be placed in your active theme directory (whatever that is).

Next, and after you’ve deleted all other sitemap pages, do this:

  1. Create a New Page
  2. Enter Sitemap in the title box.
  3. Do not enter anything in the page text field.
  4. Enter sitemap in the Page Slug box (which is on the right).
  5. Choose Sitemap from the Page Template dropdown box (also on the right)
  6. Save your page

Reply

GarnetDavid June 15, 2007

Sorry to frustrate you. After a brief misreading, I followed the original directions well, placing the file in the active theme directory, and created the page properly. I’ve searched all files and there are no duplicates of the sitemap.php anywhere. It never, ever works unless I name the page slug something other than sitemap. I have a beautiful, styled sitemap, BUT with the url /site_map.

Reply

kristarella June 24, 2007

Hey Chris, you rock! Apparently I don’t though. I used the sitemap file included in the Copyblogger theme. I simply made a new page with a page template of Sitemap and post slug sitemap. The page works, everything except the posts are there, instead of the posts only a link to the sitemap is there.

Reply

Gray June 29, 2007

Could this really help?

Reply

Teejay July 6, 2007

I hope we have one built for the Press Row theme.

Reply

Rolety July 19, 2007

Thanks Chris, thats the answer of many of my questions i’v had!

Reply

couchmouse August 7, 2007

Thanks for the code and instructions Chris. Works great with Cutline.

Reply

Kiran August 12, 2007

Thanks Chris. I’ve been struggling for sometime to figure out an archive page. With this new code of yours, I now have an archive page and a sitemap Xhtml.

Reply

disgruntled xhtml user August 13, 2007

Why is it when i visted your webpage and used the firefox extension “force content-type” and saw that your webpage had teh doctype xhtml, so i dcieded to use teh content type application/xhtml+xml
why do i get an xml parse error?????

HI FIVE!!!!!111111111111111

Reply

Stanley August 15, 2007

Thanks for the article. Very useful. Actually I already created the XML google wanted in their webmaster tools – but making additional XHTML was new to me.

Reply

Tony Cai August 20, 2007

Great tip. I have implemented it! Thanks so much. You’re awesome!

http://tonycai.com

Reply

skewl August 22, 2007

Hello Chris,

I tried your new sitemap approach on my wordpress blog loverslawn.com but I am getting the same error no matter how hard I tried to implement it successfully. Can you please tell me what I am doing wrong? I have already gone through the comments above but I suppose nothing favours me…

Here is the link to my sitemap http://www.loverslawn.com/sitemap/

Thanks for your time!

Ananya

Reply

Eugene August 22, 2007

My sitemap and archive is getting longer and longer and was wondering if anyone of you can help me sort them. What I want essentially is have to columns instead of just one. Was wondering if anyone can help me out with this?

Go here to see what I mean..thanks

http://www.evsionlab.com/archives/
http://www.evsionlab.com/sitemap/

Reply

Gavin September 7, 2007

XML site maps designed for Google are very important. However I did find it easier creating the site maps for HTML page then PHP pages.

Pretty much every site I build now has an XML site map for Google and a HTML sitemap for Yahoo

Reply

Resonate September 9, 2007

mmmmm I will stick to the trustworthy XML sitemap, far more effective then following the ideas of Google. I see there hold on people grows stronger by the day.

Reply

Dean Taplin September 11, 2007

I’m using Cutline 1.1, WP 2.2.3 and the Google XML Sitemaps plugins 3.0b6

I too had the 404 problems seen by a couple of other people. I followed the instructions to the letter.

If I try this URL it doesn’t work:
http://technical-itch.co.uk/sitemap/

I get a 404.
“The requested URL /sitemap.xml/ was not found on this server.”

If I try the same URL without the final forward slash I get the XML sitemap generated from the plugin:

http://technical-itch.co.uk/sitemap

In the end I had to use a page slug of site_map before the XHTML sitemap would work.

http://technical-itch.co.uk/site_map/

Will Google care that I’m using site_map instead of sitemap. Will it work just as well?

Reply

Cinzia September 24, 2007

I am using WordPress 2.2.3 and XML Sitemap Generator 3.0b10. When I use the Cutline 3C 1.1 theme, the sitemap works fine and shows one map for the site based on the home page. However, when I use the Cutline 3C split 1.1 theme, the sitemap has changed to showing multiple maps–a complete repeat of the entire map for each post on the home page. See http://stcwdc.org/wdcblog/index.php/sitemap/

If I switch back to the nonsplit theme, I get back the single map for the site.

How do I get it back to just one map for the split theme?

Reply

roberto October 3, 2007

where I find a tutorial for wordpress?

Reply

sofish November 14, 2007

Wow…I have creat one… wish the google & baidu would indexing more…

Reply

simon December 16, 2007

i have installed sitemap.php but i can t see my internal pages….

http://www.yeepage.com/sitemap

Reply

Chris P. December 16, 2007

simon — It’s possible that the sitemap doesn’t work with the latest version of WordPress. I’m not sure because I honestly haven’t tested it, and the reason why I haven’t tested it is because I no longer advocate the use of XHTML sitemaps.

Generally speaking, these pages end up having 100+ links (if not way more), and the powers that be at Google have stated that this is a poor practice that should be avoided if possible.

Reply

Jordan Patton February 4, 2008

Thanks for the excellent article, Chris. Implementing the sitemap was incredibly easy, and it worked immediately!

Reply

seocontest2008 February 4, 2008

It is a great article, any tips on how to style tme xml file?

Reply

Corry February 8, 2008

I would like to know if there is a php script that generates an XML file for a site map.

Reply

Ty Downing February 22, 2008

Chris,

WoW, this site map is awesome! We have totally used this on several clients and our own blog. There was one small issue with our blog on the site map page, the main navigation is all bundled up “All Internal Pages”, you have any words of wisdom of how to clear that? I would pay you for it!

Thanks,
Ty!

Reply

Little February 26, 2008

But can the sitemap handle big websites for example one that has 400,000 urls? as google sitemaps allow only 50,000 urls per map

Reply

Adam Kayce March 3, 2008

Worked like a charm. You are seriously awesome… I just don’t how else to put it. Thanks, brother.

Reply

plastik March 4, 2008

I have created sitemap.xml file for google. I also have a sitemap.html file. What is the maximum internal link number for this page? Do I have to split the page if there are more than 50 links? Thanks for answers.

Reply

Chris P. March 4, 2008

plastik — You should always try to keep the number of links on a given page under 100. Personally, I think shooting for 50 is optimal, but you should seriously be fine with anything less than 100.

Reply

moserw March 13, 2008

Thanks for helping out. Going to do it.

http://www.nela.in/

Reply

planning4ever March 16, 2008

I created the sitemap (awesome btw) and in “draft” form I can preview it fine. As soon as I hit publish…the sitemap disappears.

???

Reply

plastik March 17, 2008

I keep on reading about sitemaps. After reading many pages, at last I decided to put less than 50 in- site links to the sitemap.html page. Before this, I thought I should put all my website page links into the sitemap.html page but learned that I do not need to put all the links instead put the nost important page link in a descending order. I also have sitemap.xml file in which all the in-site links are included. Have I done correct Chris?

Reply

Connor April 6, 2008

Chris,

This doesn’t work with the latest version of Wordpress, apparently. Accessing the sitemap just dumps out what the front page of my blog has – 10 posts w/ their summaries. Ideas?

Reply

Chris P. April 6, 2008

Connor — I haven’t checked the sitemap with the latest version of WordPress yet, but the primary reason for this is because I no longer endorse the use of an HTML sitemap.

It’s not a bad convention for sites that have fewer than 100 pages, but for larger sites, a sitemap is actually unnecessary as far as your overall SEO strategy is concerned. I need to nix mine from this site, but I haven’t worked on the back end here in months.

As a parting shot, I think you should just make sure that you have an XML sitemap installed. It serves a different purpose altogether, and I still highly recommend using one.

Reply

PropertyGuy May 1, 2008

Hey Chris,

I’ve been contemplating the idea of creating a XHTML sitemap for a while, but I’ve never been certain of its effectiveness. From what I understand, Google won’t index, or at least index all links, on a page with more than 100 links. If a page just has an excessive amount of links, with very little content, isn’t the page considered to be a link farm?

I’d be interesting to hear your thoughts on this.

Kind regards

Reply

Chris P. May 1, 2008

PropertyGuy — I no longer endorse the use of an XHTML sitemap for the very reason you cited. I have even gone as far as to remove the sitemap.php file from my latest theme release, Thesis.

Reply

Gray May 7, 2008

Very good sitemap Chris. Thanks!

Reply

Promotions sur les vetements May 23, 2008

Thanks for this – FAB !
I run an older version of Wordpress so you have to make a couple of quick changes (eg categories are called different function in php) but the result is great.

Thanks again

Reply

FightingMan May 23, 2008

very useful…thanks

Reply

estetik cerrahi May 23, 2008

Chris I have found a free sitemap generator software for static web pages. Very useful one. The software crawls your site generates sitemap files xml, gz, txt and pings google and yahoo also.

Reply

Brock July 25, 2008

Chris, the Google sitemap plugin is working, but I can’t seem to get the xhtml sitemap page to display any links. I’ve been over and over the instructions, so I’m not sure what I’m doing wrong. That being said, I’m not sure what I’m doing, period, when it comes to code, so I am probably overlooking something or followed the instructions wrong.

Am I right in assuming that the blocks of code in step 2 should be left in (just delete what is in between them), and that the body tags should not be copied over (just copy what is in between them)?

I’m using Thesis (which is great). Thanks.

Reply

Chris Pearson July 25, 2008

Brock — When I first released Thesis, a sitemap was included in the template package. However, I haven’t really supported this technique since the early part of 2007, and I no longer recommend using an XHTML sitemap. Basically, its utility has been completely replaced by the much smarter, much cooler XML sitemap, which you’ve already installed.

Reply

Brock July 25, 2008

Ah! Thanks for getting back to me so quickly, Chris.

I thought the purpose of the XHTML sitemap was that it is easier than the XML sitemap for your visitors to use as a navigational tool? Would you now say this role should be fulfilled by the archives?

Thanks again.

Reply

Chris Pearson July 25, 2008

Brock — From a navigation standpoint, you should focus your efforts on employing effective linking strategies in your sidebar. Another good idea is to explore creative ways to interlink posts inside your own content. Finally, you can back all of that up with an archives page if you so desire.

Reply

Chris August 22, 2008

Chris, I followed all of your instructions, except that in the theme that I am using (Thesis), I didn’t find this code in the page.php file to delete:

Although the first one was there and I deleted what was inside of it, just as you had instructed.

So I followed all of your instructions, and this is what I got when I clicked on my sitemap link:

Parse error: syntax error, unexpected ‘<’ in /home/cesty/public_html/wp-content/themes/thesis/new_sitemap.php on line 16

What did I do wrong?

Also, I would like to know if it is necessary for SEO purposes to include the xml sitemap link in the xhtml sitemap. If so, how would I go about doing that?

Reply

Chris August 22, 2008

Chris,

I was reading through the posts and just noticed that you had said you don’t endorse the use of this kind of sitemap anymore. So I will remove it.

I actually wanted to use it for two reasons:

1. I wanted the SEO benefit with Google

2. I want to make it easier for visitors to see all of my posts on one page rather than to use the archives. I avoid using archives because I was informed that with Google it constitutes duplicate content.

Is this true? If so, what option do I have left to allow my visitoes to access all of my posts from one page without me getting penalized by Google?

Reply

Chris Pearson August 22, 2008

Chris — Google Webmaster Guidelines stipulate that you should never have more than 100 links on a given page. Because of that, it makes no sense to use an XHTML sitemap. Also, it’s worth noting that the new, more standardized XML sitemap provides far more search engine benefit moving forward.

As far as giving visitors access to all of your posts, you should consider using a few categories intelligently to direct people to the most powerful pages of your site. You can’t get all your links in one place with this arrangement, but if you think about it, when would that really make sense anyway?

Reply

Chris August 22, 2008

I wish Google would lighten up a little.

Reply

Chris September 24, 2008

Chris, I realize that you had said that Google might see an xhtml sitemap as a link farm. But I just want to share a little testimony with you about your sitemap…

I was having an indexing problem for quite a while because I changed all of my posts to pages. As a result of this, Google had only indexed 5 of my pages (according to the information that I had received in my webmaster account with Google). By the way, this happened even though I had an xml sitemap. So the xml sitemap just didn’t cut it.

So I went ahead and put your sitemap on my blog anyway, and guess what happened…

Not long after that, I was informed that Google had indexed 38 URLs from my site! So your sitemap ROCKS!

And I am thankful that you created it!

By the way, I asked the people over at Webmaster Central about the link farm thing, and was informed that it is likely that Google wouldn’t have an issue with it since it is a sitemap.

Thanks again!

Reply

Hans October 6, 2008

Probably my fault, but it doesn’t work (I get a totally empty sitemap)
1) What exactly do I upload, the sitemap.php or the complete downloaded sitemap file including an _MACOSX file? (and if the latter doesn’t have to be uploaded, why download it at all??)
2) I use permalinks (with date and post title), so my sitemap slug has the unchangeable sitemap in it
3) I DO use your cutline theme (3column 1.1), perhaps there is an update I missed (I have another problem, disappearing front page picture there as well). Thanks

Reply

oyun October 19, 2008

Thanks so much, this is awesome. Worked exactly as described, had a site map up in a few minutes.

Reply

Plastik cerrahi October 22, 2008

What about tag pages? I’m finding that alot of my traffic is coming from tag pages. I didn’t see any settings for true/false with regard to tag pages. Thx.

Reply

dinu November 2, 2008

thanks a looooooooooooooooooooot :)

Reply

sıcak November 13, 2008

Thanks for the article. Very useful. Actually I already created the XML google wanted in their webmaster tools – but making additional XHTML was new to me.

Reply

Mikhail November 23, 2008

Chris,

I have used a modified ( actually, stripped) sitemap.php ( showing a total list of blog’s posts) – the core line was taken from your original file and reads:

have_posts()) : $archive_query->the_post(); ?>

That script works fine on one blog , but becomes an issue on another.

Those two blogs sit on two different hosts.

The first one never exceeds 33 queries on the sitemap page, the second one’s queries keeps going up while new posts being published and hit a thousand queries, then it reached PHP memory limit. A sysadmin increased that limit but sure enough it reached the ceiling soon and that sitemap page is disabled now.

The sysadmin isn’t cooperative and blows me off when I imply that’s his server’s settings need to be checked ( The same script, like I said works fine on the another host).

Any idea to give the sysadmin a clue, please?

Reply

Mikhail November 23, 2008

oops, one line of the code got missing and I am trying to copy and paste it again:”have_posts()) : $archive_query->the_post();”

Reply

dee November 26, 2008

I love it.

Reply

dee November 26, 2008

I installed the sitemap and I think it looks great.

Please note that J-S Kits comments do not show up on the sitemap. Not sure what is up with that but I get back to u. The comments are still there but maybe the plugin has not been updated to collaborate with the plugins? Let me know how to get comments to show up next to the articles or remove the comment section from the page.php

Thank you for the great plugin. Very clean!

Reply

dee November 26, 2008

I need your help. The sitemap is showing up on all of my pages? Please advise

Reply

dee November 26, 2008

Totally disregard my last two messages. After I read the last tidbit of current information about link farm when usig the xhtml. I changed it back to DDsitemapgen. My site has been indexed by google using it. Nice information you have on your site. Thanks

Reply

ünlüler December 15, 2008

It’s not a bad convention for sites that have fewer than 100 pages, but for larger sites, a sitemap is actually unnecessary as far as your overall SEO strategy is concerned. I need to nix mine from this site, but I haven’t worked on the back end here in months.

As a parting shot, I think you should just make sure that you have an XML sitemap installed. It serves a different purpose altogether, and I still highly recommend using one.

Reply

lutuzhi March 25, 2009

thank you,it’s work perfect for my site.

Reply

Aliester May 25, 2009

Thanks Chris for such a nice info. It is too important for SEO prospective also.

Reply

Koray Löker June 24, 2009

I’m using Cutline in three different blogs and Even without these tools you’re supplying it’s great.. And there is this sitemap… Thank you very much…

Reply

Todd July 5, 2009

Dude .. you really need to edit your tutorial as its not relevant for the current WP Release.. There is nowhere anything called ..

“4. Most important, from the Page Template dropdown box, select the Sitemap template.”

WHAT ?? WHERE u see this ???

Why not just edit your page.. or re write it.. somebody asked this question but i didnt see a reply.. For those that are lost as the post id old and outdated and not being updated.. just use the plugin for Dragon.. i am..

Reply

Chris Pearson July 6, 2009

Todd — Although the tutorial is outdated, the specific direction that you mentioned is not. In WordPress 2.8, the page template dropdown box is located on the right side of the screen, underneath the post date and privacy controls.

Reply

findigart July 27, 2009

Hello Chris,

First off I wanna thank you for the plugin. Secondly, I am using the 2.8 WP and for some reason when looking for the sitemap template in the drop down it does not show. The sitemap.php in in place alright, but no template to be seen – porqua?

Thanks! :-)

Reply

findigart July 27, 2009

Jesus Christ and Holly Marry, whatta blunder! I forgot to transfer the php to the site – just opened it locally. Call 911, there’s a psycho in town!

Reply

Keiy July 31, 2009

Thanks for this useful tips Chris, I’ve applied this technique in my blog.

Reply

Gav October 16, 2009

I used XML and HTML sitemaps on most of my sites. I find this covers most search engines. However I will look into XHTML sitemaps. Good Article

Reply

Dave May 28, 2010

Hi Chris, I just stumbled upon this site. Thanks for all the useful stuff you have on here and keep up the good work.

Reply

sfire November 12, 2010

hi Chris,
What is the different between Dagon Design Site Generator and Google XML sitemap? I would prefer to have just Google XML sitemap, but have no choice but to put up Dagon, cos it has the code where I can easily put into my wordpress Sitemap page to have the Sitemap showing.

My concern is if I do not have Google XMP sitemap plugin, then i might not indexed well by Google. But on the other hand, having both these plugins doesnt make sense. Hope u can advise me. Thanks.

Reply

Kayseri Emlak April 3, 2011

Jesus Christ and Holly Marry, whatta blunder! I forgot to transfer the php to the site – just opened it locally. Call 911, there’s a psycho in town!

Reply

Howard September 29, 2011

Hi Chris,
As always I really appreciate all the help you offer.

I had the same question as sfire asked, is it necessary or beneficial to use both Google XML Sitemap plugin and Dagon Design?

OR, do you have any experience with the Yoost Wordpress SEO plugin which generates multiple sitemaps or I guess it just segments them, what ever it does is it anything you would recommend?

Thanks Again!
Sincerely,
Howard

Reply

Chris Pearson September 29, 2011

Howard, it’s not necessary to run both the Google XML Sitemaps plugin and the one from Dagon Design. The same is true for the Yoast WordPress SEO plugin, too.

Pick the one you like the most (I’d recommend either Google XML Sitemaps or WordPress SEO) and stick with it.

Reply

Marie Gronley MD November 15, 2011

Chris it has been 4 weeks since I installed the html and xml site maps and I have not seen any noticeable difference, what is the best site map and will the xhtml help much and display the first 6 pages of my site?

Reply

Chris Pearson November 15, 2011

Marie, as of mid 2007, I no longer recommend the use of an XHTML sitemap. Instead, set up an XML sitemap on your site.

Once you’ve done that, you should get your site set up in Google Webmaster Tools and submit your new sitemap to them.

Reply

Marie Gronley MD November 16, 2011

Thank You Chris! Appreciate your advice and the knowledge on this website.

Marie

Reply

nida January 30, 2012

hey Chris,

I will try to do this as soon as I get home…please help me through this If I stumble as I am new to blogging!!

Reply

nida January 30, 2012

appreciate your hardwork and very respectful way of responding!!

Reply

Ertug March 18, 2012

hımmm… i’m a bit confused. is it your last decision? do you really think that we don’t need a html sitemap for seo purposes?

Reply

Richard N. Stephenson July 6, 2012

I was all ready to ramble on about XML sitemaps and then I saw your update note. :) Thank you for coming back and addressing the changes that have come up over the years.

Oh and one note: in your update blurb, you mentioned taking down the XHTML links, but the zip file is still downloadable. Just wanted to point it out. Thanks for your due-diligence!

Reply

Hoot and/or Holler

Previous post:

Next post: