Installation

1. Upload the `wp-html-sitemap-generator` folder to the `/wp-content/plugins/` directory via FTP, or install directly through the WordPress plugins screen.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Navigate to **Settings -> HTML Sitemap** to configure the options to your liking.
4. Create a new Page (e.g., “Sitemap”) and add the shortcode `

` to its content.
5. Save and view the page!

== Frequently Asked Questions ==

= Does this plugin create an XML sitemap for Google? =

No. This plugin is designed to create an HTML sitemap for your human visitors to help them navigate your site. For an XML sitemap, we recommend using a dedicated SEO plugin.

= How do I customize the styles? =

You can select a pre-built style from the settings page under the “Appearance” tab. For more advanced customization, you can use the CSS classes provided (e.g., `.wp-sitemap-page-container`, `.sitemap-section`, `.sitemap-pages`) in your theme’s stylesheet.

= Can I show only my ‘Events’ custom post type? =

Currently, the shortcode displays all content based on your central settings. We are considering advanced shortcode attributes for future versions. For now, you can go to the settings and disable Pages and Posts to only show your Custom Post Types.

== Screenshots ==

1. The plugin’s clear and simple settings page.
2. Example of the sitemap using the “Classic List” style.
3. Example of the sitemap using the “Modern Columns” style.

== Changelog ==

= 2.0.0 =
* MAJOR UPDATE: Repository Release.
* REFACTOR: Complete code overhaul into a modern, singleton class structure.
* NEW: Added an “Appearance” section with multiple built-in styles (Classic, Minimal, Modern Columns).
* NEW: Added option to display post publication dates.
* NEW: Added a dedicated settings link on the main plugins page for easier access.
* IMPROVEMENT: Front-end CSS is now loaded conditionally only on pages containing the shortcode for better performance.
* IMPROVEMENT: Revamped settings page for better organization and usability.
* IMPROVEMENT: Code is now more secure, performant, and follows WordPress best practices for repository submission.
* I18N: Made all strings translation-ready.

= 1.1.0 =
* FIX: Plugin now works immediately on activation with sensible defaults.
* IMPROVEMENT: More robust handling of settings and shortcode logic.

= 1.0.0 =
* Initial release.