This plugin creates a sitemap for your WordPress powered site. This is not just another XML sitemap plugin, but rather a true sitemap generator which is highly customizable from its own options page in the WordPress admin panel. Some of its features include: support for multi-level categories and pages, category/page exclusion, multiple-page generation with navigation, permalink support, choose what to display, what order to list items in, show comment counts and/or post dates, and much more. To see this plugin in action, visit my sitemap page.
I am currently experimenting with the WordPress Extend database to manage the downloading of plugins. Because of this, the folder name for the plugin is currently ’sitemap-generator’ instead of ‘dd-sitemapgen’.
If you are upgrading, please delete the ‘dd-sitemapgen’ folder before uploading the new version.
The latest version of this plugin includes complete support for language files. If you would like to submit a translation, please contact me. You can choose the language from the options page.
Current languages: English, Albanian, Brazilian-Portuguese, Bulgarian, Czech, Dutch, French, German, Italian, Japanese, Lithuanian, Polish, Romanian, Russian, Simplified Chinese, Slovene, Spanish, Swedish, Turkish, Ukrainian
The language file contains not only the text shown on the sitemap page, but all of the text in the options page as well.
To upgrade, disable and then delete the existing plugin. Then install the new version as explained above.
After you install, be sure to click the ‘Load Default Options’ button, as some of the settings have changed.
Version 3.0 of this plugin is a big jump from the previous versions. Most of the code has been rewritten from scratch, and a few things are different. One of the best improvements is the speed and stability. The sitemap generation is much faster now, which should especially help people with larger sites. Be sure to read the updated information below.
Want to run the plugin from a template file?
To use the sitemap generator function directly from a template file, just insert the following line where you would like the sitemap to be generated:
<?php echo ddsg_create_sitemap(); ?>
Permalinks for sitemap navigation
Depending on your settings, the sitemap may be spread across multiple pages. If you are using permalinks, be sure to enter the page slug of your sitemap page in the plugin options. That way it will use permalinks for the sitemap navigation as well. If you are not using permalinks, simply leave this option blank.
This plugin has a couple of CSS classes built in to easily change the look of your sitemap. Just add the new declarations to your themes CSS file, and customize it however you like.
- .ddsg-wrapper – Div around the entire sitemap.
- .ddsg-pagenav – Div around the page navigation.
These options can be configured from the options page in the WordPress admin panel. Most of these are fairly self-explanatory.
- Language – Language files are located in /wp-content/plugins/sitemap-generator/lang/
- Items per page – Set to 0 for unlimited
- Sitemap page slug – If using permalinks, enter the slug of your sitemap page
- What to show – Show posts, pages, or both
- If showing both, which first – Show posts or pages first
- Post sort order – Sort by title or date (oldest or newest first)
- Page sort order – Sort by title or date (oldest or newest first) or menu order (ascending or descending)
- Show comment count after posts
- Show comment count after pages
- If showing comment counts, display when zero
- Show dates after posts
- Show dates after pages
- Date format (if showing dates) – Use PHP date() formatting
- Excluded categories – Category IDs, separated by commas. Sub-categories will also be excluded, as well as all posts contained in excluded categories
- Excluded pages – Page IDs, separated by commas. Sub-pages will also be excluded
- Hide future-dated posts
- Hide password-protected items
- Sitemap navigation method – Two types to choose from
- Show sitemap navigation – Where to show the navigation
- Full path to XML sitemap – If you are also using an XML sitemap plugin, you can enter the path to the XML file here, and a link to it will be added to your sitemap page
- Where to show XML sitemap link – At the end of the last page, or at the end of every page