How To Create Automatic Sitemap in WordPress

A site map (or sitemap) is a list of pages of a web site accessible to crawlers or users. It can be either a document in any form used as a planning tool for web design, or a web page that lists the pages on a web site, typically organized in hierarchical fashion. This helps visitors and search engine find pages on the site.
This is not “Google sitemap”!

sitemap550

Why Use Sitemap ?

  • To improve the navigation of your site so :
    • the user can quckly find a specific post he wants.
    • the user can quickly see and get an idea how big the blog is and get an overview what the blog is writing about.
  • All your post are linked to form a sitemap page, used by search engines to index your site.

How to?

Credit : Thanks to Jim Westergren for this tutorial, we improve a little bit and try on wordpress 2.9.1, it’s working good :).

You can see demo : our sitemap

Steps :

  1. Download and activate these plugins :
    • Exex-PHP plugins that makes it possible for you to parse PHP in your blog posts.
    • WP Category Post Plugin, that makes it possible for you to list posts per category.
  2. plugin

  3. Create a new page (not post) with  this code :
    <h2>
    <a name="contents">Jump to a category section :</a>
    </h2>
    <ul>
        <li style="padding: 5px 0 5px 0;">
        <a href="#link_anchor_category_name1">Category_name1</a>
        </li>
        <li style="padding: 5px 0 5px 0;">
        <a href="#link_anchor_category_name2">Category_name2</a>
        </li>
        <li style="padding: 5px 0 5px 0;">
        <a href="#link_anchor_category_name3">Category_name3</a>
        </li>
    </ul>
    <h1 style="margin-top:10px;">
    <a name="link_anchor_category_name1">Category_name1</a>
    </h1>
    <div style="margin-left:40px;">
        <ul>
            <?php
                wp_cat_posts(6);
            ?>
       </ul>
       <a href="#contents">Back to Contents^</a>
    </div>
    <h1 style="margin-top:10px;">
    <a name="link_anchor_category_name2">Category_name2</a>
    </h1>
    <div style="margin-left:40px;">
       <ul>
           <?php
               wp_cat_posts(2);
           ?>
       </ul>
       <a href="#contents">Back to Contents ^</a>
    </div>
    <h1 style="margin-top:10px;">
    <a name="link_anchor_category_name3">Category_name3</a>
    </h1>
    <div style="margin-left:40px;">
       <ul>
           <?php
                wp_cat_posts(4);
           ?>
       </ul>
       <a href="#contents">Back to Contents ^</a>
    </div>
  4. Copy and paste on your a new page editor (HTML section)
  5. page-edited

  6. The numbers
    <?php
         wp_cat_posts(43);
    ?>

    are the IDs of the categories. You can find your ID of the categories on Dasboard > Post > Categories and hover a category name, you can see the link address, along with the category ID.

    ID category

  7. Repeat this code until you cover all your categories.
  8. Publish your page on your about page, footer or at some other visible place, make a link pointing to your site map for full visitor and search engine link benefit.

It’s done, of course you can change the code of this sitemap appropriate design you like.

Feedback

How about you? How do you create a sitemap? Or do you have a problem with this tutorial? Please share with us, in comment section below. Thanks.

Our prep courses include the latest set of HP0-Y40 exam with 100% guarantee for victory in 70-642.Our CISSP is simply the best in its quality.

56 Comments to “How To Create Automatic Sitemap in WordPress”

Add Comments (+)

  1. I will be coming back here again and again, and I will tell my friends as well. This is a great site. See yer! Jodie May

  2. Definitely most of the free templates look nice but you may be unhappy with the experience that these templates offer. For instance, you will find that the designs are generally too simple, and the font sizes and colors are not in right place. You can always install a premium template and can correct all these issues. Simply by giving a more positive user experience, you are encouraging visitors to stay longer on your blog that is always a good idea. Nobody wants to chase their visitors by having bad designs!

    • Eko S. says:

      Hi, Alison that’s great advice for us…We will always learning to improve and develop our themes. Tomorrow we will upload a new theme, we hope you give advice and input to us again.
      Thanks, your feedback makes us better.

  3. forex robot says:

    Keep posting stuff like this i really like it

  4. Carmen Thome says:

    I love this blog. Thanks for the great information. I have it bookmarked and will be back. If anybody needs brand new crdit file don’t hesitate to come on over.

  5. Kandra Watne says:

    That is some valuable information and I am always interested in the newest technology so I will bookmark this site.

  6. Val Lauver says:

    Many people like to know when they comment that someone is listening. The way to let them know that there is someone behind the computer screen who cares what they say is to respond when they say something.

  7. Joey says:

    Of information, what an excellent site and educational posts, I’ll put backlink – bookmark this web-site? Regards.

  8. May Obhof says:

    Hello admin, top-notch article. I’d like to quote some of the info on my website – I hope you don’t mind if I post a url back?

  9. backlinking says:

    I truly enjoyed reading through this post.Thanks.

  10. It’s fine to create sites, but unless you do extensive backlinking your hard work building sites will be for naught.

  11. Some exceptional thoughts here. Have you been convinced it is the appropriate strategy to appear at it though? My personal private encounter is that anyone are advised to fairly very much reside and let live considering what an individual man thinks just — yet another guy simply does not. Human beings are planning to do what they choose to do. With the end, they normally do. The most we can pray for would be to highlight several factors below and there that hopefully, lets them for making just a small much better informed decision. Otherwise, terrific write-up. You’re most definitely creating me believe!

  12. Ziar Neamt says:

    I’ve been thinking the exact exact same issue myself recently. Glad to determine an individual on the similar wavelength! Nice report.

  13. Peter says:

    Nice website. Very informative posts.

    I’ll keep visiting this site…

    Please keep adding new posts..

    Regards,
    Peter
    Weight Loss Tips

  14. Interesting and useful ideas arouns sitemaps. I have been having trouble with my community services wordpress blog and will impliment this to see if it solves the problem.

  15. was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.

  16. Nice information. I will try the sitemap on my site.

  17. But why not better use a plugin other than doing so much hassle of works? What do you say can’t any plugin do this?

    • Eko S. says:

      Yes there are many plugin that can do this job, but for optimization reasons we must try to minimize the plugin :). Also if you can make your own sitemap, it can be fun too…

      Regards,

  18. Thanks,

    This is a great article and a great website. I liked it very much. It will help me to optimise my websites in europe. I have website in travel and that meens a lot of seo work !!

    Thanks a lot and greetings,

    Dave and Carol
    Seo and Travel Website in Europe, France

  19. Carl says:

    Hey, very usefull. Thanks for sharing.
    But, what about to list pages, should I add it manually?

    Thanks again

  20. beugh says:

    nice,..
    ive been started to use no plugin at my blog
    thanks dude ,..it help me much

  21. Sweet website , super design and style , really clean and use genial .

  22. Carlo says:

    Hi Eko,
    great tutorial.

    Thanks
    Carlo

  23. Roby says:

    Could you please tell me the url I should use to run “Google sitemaps for wordpress” using cron jobs?

  24. JobsonIT.com says:

    Liked the site , really some cool stuff has been kept

    Regards
    http://www.jobsonIT.com

  25. great article, i certainly enjoy this web site, continue on it.

  26. Excuse, that I can not participate now in discussion – there is no free time. But I will be released – I will necessarily write that I think on this question.

  27. allina says:

    thank you ….. its work

  28. what about site map for free wordpress site ( not self hosted)

    • Eko S. says:

      For free wordpress site. You can try the sitemap plugin. There are some great plugins and free, please search it on WordPress Plugin Directory.

      Regards,

      • Ashley says:

        When I tried this, it forces you to install it the same as you would if it were self-hosted. I don’t understand how to generate a website without a self-hosted blog because there is no panel for plugins and it seems that there is no way to upload them.

  29. very good information for me………..now i will apply it in my site.
    thanks

  30. ibproshop says:

    Thanks … this post help us to create sitemap in our website … keep the info

  31. Here is another complete solution to create an automatic sitemap using a plugin:

    http://wordpress.org/extend/plugins/wp-realtime-sitemap/

    Note that running “yet another plugin” doesn’t weigh that much on the overall WordPress installation; this is actually a myth. Plugins are far more efficient than it seems. A website with a lot of traffic will use a caching system anyway, like W3 Total Cache, and serve everything statically anyway.

  32. Manga Indo says:

    Whoa, nice info. Thank you! :)

  33. Claretta Papitto says:

    Daily best phone sale guide!

  34. Useful information…thanks for sharing!

  35. Bill Swanson says:

    Thanks for the helpful tutorial. I had briefly tried several HTML sitemap plugins, but I wasn’t getting good results. Your solution worked out nicely. It wasn’t quite as easy as a ‘flip-a-switch’ plugin, but it serves the purpose I needed.

  36. Nurhak says:

    which one do you think better site map generator plugin or the code you give?

  37. Good tips…I was looking for such info on sitemaps.
    Thanks!

  38. DeDee says:

    Thank you I am going to give this a try. Seems easy to follow.

  39. adi says:

    hi, good tutorial there! I love it

    only a question, can I preview post from different category under one category?
    ex : post from media library and media coverage will be shown under media category?

  40. adi says:

    hi, I’m just curious, how can I limit the view of each category?
    ex : I just wanna display only 5 for each category?

  41. WordPress Tricks says:

    I am using <a href=”http://www.wordpressians.com/how-to-generate-sitemaps-in-wordpress/”>SEO by yoast plugin to generate our sitemap></a> that is fantastic. Your trick is good, but take some times to generate the full sitemap.

  42. I am using SEO by yoast plugin to generate our sitemap ( http://www.wordpressians.com/how-to-generate-sitemaps-in-wordpress/ ) that is fantastic. Your trick is good, but take some times to generate the full sitemap.

  43. Iyan Apian says:

    Nice..

    great work

Trackbacks/Pingbacks

  1. uberVU - social comments
  2. How To Create Automatic Sitemap in Wordpress | DynamicWP | WpMash - WordPress News
  3. And He Blogs » links for 2010-02-20
  4. WordPress Picks for the Week [02/24] | Techtites
  5. How To Create Automatic Sitemap in Wordpress | DynamicWP | WordPress News
  6. best way to lose weight
  7. wp-popular.com » Blog Archive » How To Create Automatic Sitemap in Wordpress | DynamicWP
  8. Automatic Sitemap Generation. | 7Wins.eu
  9. Shared Hosting

Leave a Reply

 

Amazingly Beautiful WordPress Themes