HTML Sitemap Builder
Build customizable HTML sitemaps for your WordPress site. Include or exclude specific post types, skip noindex posts from SEO plugins, and control the display order with options like Alphabetical or Newest to Oldest. The sitemap automatically updates by clearing the cache whenever changes are made.
by Dhruv Pandya · github.com/dhruvpandyadp/html-sitemap-builder · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dhruvpandyadp/html-sitemap-builder/archive/refs/heads/main.zipHTML Sitemap Builder for WordPress
A powerful and customizable WordPress plugin to generate HTML sitemaps that automatically stay up-to-date.
Features
- Customizable Post Types: Include or exclude specific post types based on your needs
- SEO-Friendly: Automatically skips noindex posts from popular SEO plugins
- Flexible Sorting Options:
- Alphabetical order
- Newest to oldest
- Auto-Update: Sitemap automatically refreshes when content changes by clearing the cache
- Easy Integration: Simple to set up and integrate with any WordPress theme
Installation
- Download the plugin files
- Upload them to your
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure the sitemap settings in the WordPress admin panel
Usage
- After activation, go to Settings > HTML Sitemap in your WordPress dashboard
- Choose which post types to include in your sitemap
- Select your preferred sorting method
- Configure any additional display options
- Use the shortcode
[html_sitemap]in any page or post where you want the sitemap to appear
Configuration Options
- Post Type Selection: Choose which content types to display (Posts, Pages, Custom Post Types)
- Hierarchical Display Selection: Toggles the parent-child nesting structure for hierarchical post types (like Pages)
- Maximum Depth: Sets the maximum number of nesting levels (e.g., parent, child, grandchild) to display in the hierarchical sitemap (up to 50 levels).
- Sorting Options:
- Alphabetical
- Date (Newest/Oldest)
- Exclusion Options:
- Exclude Posts/Pages (IDs): Manually exclude specific content by entering a list of their IDs.
- Exclude Noindex Posts: Automatically respects noindex settings from major SEO plugins like Yoast, Rank Math, and SEOPress, removing them from the sitemap.
- SEO Integration: Automatically respects noindex settings from major SEO plugins like Yoast, RankMath, and SEOPress.
- Cache Control: Built-in caching system for optimal performance
Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
Changelog
1.0.0
- Initial release
- Basic sitemap functionality
- Post type filtering
- Hierarchical support
- Exclude Posts/Pages
- Exclude Noindex Posts/Pages
- Sorting options
- Cache management
License
This project is licensed under the GPL v3 - see the LICENSE file for details.
Support
For support, feature requests, or bug reports, please open an issue on GitHub.
Author
Created and maintained by Dhruv Pandya
Made with ❤️ for the WordPress and SEO community