Sitemap Plugin

I wanted a sitemap on our Tucson Real Estate blog. I went looking  on the WordPress plugin section site.   I found Dagon Design sitemap plugin  easy to install and configure and it does exactly what I wanted it to do.   You can see it at work on the Sitemap page in the right navigation.

Here are the simple steps to putting a sitemap on your WordPress blog.

Installation

  • Download dd-sitemap-gen.txt and rename it to dd-sitemap-gen.php
  • Upload the file to the plugins folder of your WordPress installation
  • Activate the plugin in your Plugins administration panel
  • Configure the plugin in the Options panel (under DDSitemapGen)
  • Create a New Page, Title: Sitemap, place the code below on the page using the HTML* window and save:

                code snippit

*Note: For WordPress 2.0 users who are using the new rich-text editor – be sure to click the ‘html’ button to edit the page source directly. Otherwise WordPress will wrap code tags around the line which generates the sitemap and it will not work.  

You can actually put that code anywhere and it will generate the sitemap, but if you want to keep it simple and not have to add this code whenever you change a theme this is the way I suggest you do it.  

I would also suggest you set the options for pages to 0 so it will display on a single page.   There are some SEO reasons for this.  

I also turned off the option to display a post only in the first category.   I want people to be able to find a post in any of the categories associated with that post.

You will notice you can’t swipe and copy the code above.   It is a graphic since I don’t know how to display PHP code in a post.

Any help out there on code display in a post would be greatly appreciated.

Comments

  1. Love it, love it, love it.

    Thanks Dave. I had never been able to configure the last site map plug in I tried, and I gave up.

  2. Maureen,

    Happy New Year. You are so welcome. I really like this sitemap plug in.

  3. Tibor Boros says:

    Dave,

    You can code special characters (google for conversion tables for details). In our case you can write:
    <!–ddsitemapgen–>
    and it appears:
    <!–ddsitemapgen–>

    I have done everything as you wrote, but isn’t working. How should I be so silly? 🙂
    I’ve got a button for Sitemap, but pressing it the page is still empty.

  4. Tibor Boros says:

    typo
    &lt;!– ddsitemapgen –&gt;
    <!– ddsitemapgen –>

  5. Tibor, you’ve probably figured this out. Same thing happened to me.

    Although I THOUGHT I had inserted the code, , in a code screen, it turns out I did not. I discovered that by looking at the page’s source code.

    So I went back to the post, in edit mode, and removed the existing and then switched (again, I thought) to “code” mode instead of “visual” (which is rich text) and …voila… this time it took… And a site map was generated.

    Hope that helps someone.

    Best,
    kwc

  6. Ken,
    Thank YOU!! Your advice helped a lot. I was searching for the solution for an hour till I came across your post. Sitemaps works great now!!

  7. Drexel Hill, Pa Real Estate says:

    WOW! I want to say so much. On the sitemap thingy. I don’t agree with just one page. Its a fact google doesn’t want more than 100 links per page. I would select that option for the phugin.
    I love the clean look of your site.
    I did a big Case Study for the House For Sale Video you may want to look at. Very interesting ideas.
    I am setting this site on my favorites as a regular read.

  8. Drexel,

    It isn’t that Google doesn’t want more than 100 links. It just doesn’t spider after 100 links. And that includes all the links in your post, navigation, etc. However, If you check your internal links according to Google it never stops at 100. So they do spider more than 100 links on a page.

  9. Drexel Hill, Pa Real Estate says:

    Great! Thanks for that. Your saying the bot comes and looks at all the links, but doesn’t FOLLOW after 100. This is important to me because I have sitemap in xxx.com/blog/sitemap.html. Since I have index page without a proper sitemap on blog I would loose articles being two clicks from home page. need google to follow all of sitemap.

    Thanks again for spreading your knowledge.

  10. Drexel,

    The best thing to do is have the google sitemap plugin installed. They will automatically generate a sitemap.xml file. This is the best way to feed your site to Google. Doing this and submitting it after you publish a post will eliminate any dependance on the bots crawling your site.

    I would never depend on bots crawling the site. Pushing the links through the sitemap.xml is not limited to 100 links like it is when the site is crawled per page. By pushing the sitemap.xml file to google it is a doc and not a page subject to the 100 link limit. The bots crawling the site is just what they do, but in order for you to take control generate a valid sitemap.xml and tell google when you have added content to the file.

  11. Drexel Hill, Pa Real Estate says:

    Thanks so much!

  12. Hello, I am using WP version 2.6.2 and Ddsitemapgen version 3.15, my website is http://www.egport.com.

    I had created a page with title “Sitemap” which you can see on my page.
    I am using permalink “/%postname%/” so i updated the DDSitemap option with page slug “/%postname%/”

    Nothing comes up when my this page get hits…

    Pls help me..

    Is it correct to use “/%postname%/”.

  13. Rajesh,

    No.

    You don’t have to enter a slug. If you already have a page named “Sitemap” you would enter a slug to differentiate it like “Site-map” or “My Sitemap” in the slug.

  14. Thanks a lot Dave,

    It is working now.

    This plugin is excellent, loved a lot…

    Keep it up dude

  15. Hi Dave,

    I have the same problem as Rajesh, but its still not working.

    I created a page called sitemap:
    http://personalinjuryfirmstoronto.com/sitemap/

    I added the little piece of code. You can see it in the view source.

    I also use permlinks /%postname%/

    I put My Sitemap for the slug.

    Please help

  16. Vlad,

    I would recommend the same thing. Change the slug to be something beside the word sitemap and see if that corrects the issue. Otherwise I would change the name of the page to Archives.

    Give those a try.

    Dave