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.

If you like this, then you might also like:

18 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

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

Leave a Reply

premium-themes