A WordPress plugin to display an interactive, hierarchical sitemap tree of pages, posts, and categories.
== Description ==
Advanced Sitemap Tree is a lightweight plugin that generates a user-friendly and interactive hierarchical sitemap. You can display pages, posts, and categories with expandable and collapsible sections. Perfect for improving website navigation and SEO.
**Features:**
– Display pages, posts, and categories in a clean, nested tree view.
– Interactive expand/collapse functionality for nested content.
– Fully customizable via shortcode options.
– Responsive design, ensuring mobile-friendly navigation.
– Expand/Collapse All controls for easier navigation.
**Shortcode Usage:**
Add the following shortcode to any post, page, or widget:
`advanced_sitemap_tree`
You can customize it with the following attributes:
– `depth` *(int)*: The depth of page nesting (default: `0` for unlimited).
– `show_posts` *(true/false)*: Whether to display posts (default: `false`).
– `show_categories` *(true/false)*: Whether to display categories (default: `false`).
**Examples:**
– Show pages only:
`advanced_sitemap_tree depth=”2″`
– Include posts:
`advanced_sitemap_tree depth=”2″ show_posts=”true”`
– Include posts and categories:
`advanced_sitemap_tree depth=”2″ show_posts=”true” show_categories=”true”`
== Installation ==
1. Download the plugin ZIP file.
2. Upload the `advanced-sitemap-tree` folder to the `/wp-content/plugins/` directory.
3. Activate the plugin through the ‘Plugins’ menu in WordPress.
4. Use the shortcode `advanced_sitemap_tree` in any post, page, or widget.
== Frequently Asked Questions ==
= How do I customize the sitemap depth? =
You can control the depth of nested pages by setting the `depth` attribute in the shortcode. Example:
`advanced_sitemap_tree depth=”3″`
= Can I display posts and categories in addition to pages? =
Yes! Use the `show_posts` and `show_categories` attributes to include posts and categories. Example:
`advanced_sitemap_tree show_posts=”true” show_categories=”true”`
= Does the plugin work with responsive designs? =
Yes! The plugin is fully responsive and adapts well to all screen sizes.
= Is this plugin SEO friendly? =
Absolutely. The generated HTML output is clean, semantic, and fully crawlable by search engines.
== Screenshots ==
1. **Sitemap Tree** – An example of the hierarchical sitemap tree with pages, posts, and categories.
2. **Expandable Sections** – Interactive expand/collapse functionality for nested items.
3. **Shortcode Usage** – Adding the shortcode to a page.
== Changelog ==
= 1.1 =
* Added support for displaying posts and categories.
* Added expand/collapse all functionality.
* Improved accessibility and responsive design.
= 1.0 =
* Initial release with hierarchical sitemap display.
== Upgrade Notice ==
= 1.1 =
Upgrade for new features, including post and category support, as well as improved usability.
== License ==
This plugin is licensed under the GPLv2 or later license.
Contact us today to request a consultation and discover how our expert solutions can help your business thrive.