3
June
2005

Google Sitemaps for WordPress

WordPressGoogle now has a new (in beta) feature called Google Sitemaps to quote the folks at Google:

“Google Sitemaps is an experiment in web crawling. Using Sitemaps to inform and direct our crawlers, we hope to expand our coverage of the web and improve the time to inclusion in our index. By placing a Sitemap-formatted file on your webserver, you enable our crawlers to find out what pages are present and which have recently changed, and to crawl your site accordingly.”>

With my switch over to WordPress I wrote a page that will produce a sitemap using the data in WordPress.  It will create entries for posts, static page, categories, and feeds.

You can view the contents of my sitemap.php file which is stored in my WordPress directory.

You can see the Sitemap output here.

Update: Michael Nguyen has created some php code to generate wordpress Sitemaps dynamically which has been updated by Dean Sas to include categories in sitemaps also.

10 Comments

  1. Johan Comment posted Saturday, June 4, 2005:

    Including a last modified date for the categories is a very good idea. Unfortunately your script generates a database error.
    See the last entry in the XML output: WordPress database error.

    Also, the base url is not displayed, see first entry:
    -

    2005-06-04T06:36:06Z
    daily
    1.0

  2. Rodney Shupe Comment posted Saturday, June 4, 2005:

    Thanks,
    I missed the base URL problem it is now fixed. I had fixed the SQL problem but forgot to upload it to the production server from my test server.

  3. ed Comment posted Wednesday, January 4, 2006:

    Well i im trying to get a sitemap for my website but it is a little hard to do.

  4. Google Sitemaps to Improve Indexing » Search Engine Optimization » SEO For Wordpress Pingback posted Tuesday, February 14, 2006:

    […] Shupe’s Google Sitemap Generator for WordPress […]

  5. Bagak.Com Pingback posted Friday, March 31, 2006:

    […] Shupe’s Google Sitemap Generator for WordPress Permalink | Trackback URL | RSS Feed | TechnoLinks TagIt! in:  del.icio.us •  Spurl •  Furl […]

  6. Online Marketing Mentor Comment posted Monday, October 30, 2006:

    Works well for me. Great tool.

  7. ffl Comment posted Friday, November 10, 2006:

    Great idea. I’ll be setting it up

  8. Rich Comment posted Friday, December 29, 2006:

    Google site map seems to work well. I believe google crawls faster with it implemented.

  9. Sandra Steven Comment posted Monday, February 26, 2007:

    It is always better to do Google site map this fastens the speed of Google crawler. xml format does even better.

  10. constantine Comment posted Tuesday, June 9, 2009:

    I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.

Leave a comment

 
Rodney's 404 Handler Plugin plugged in.
Rodney's Adsense-Deluxe Add ons plugged in.
Rodney's Bread Crumbs plugged in.
Rodney's Edupage Email Import plugged in.
Rodney's Hierarchy for shupe.ca plugged in.
Rodney's Meta Tags plugged in.
Rodney's Most Recent plugged in.
Rodney's Permalink Override plugged in.
Rodney's Widget for the FAlbum. plugged in.
Using Yaletown Theme for Wordpress.