=== Jass Similar Posts Cards ===
Contributors: jass345
Tags: similar posts, related posts, post recommendations, category filter, similar content
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display similar posts with category and tag filters. Beautiful card layout, fully customisable.

== Description ==
Jass Similar Posts Cards adds a stylish "Similar Posts" section below your single post content. It uses category and tag matching to find the most relevant posts, ensuring your visitors always have something interesting to read next.

**Features:**

*   Works with categories and/or tags (both can be enabled simultaneously)
*   Fully customisable grid layout – choose number of columns (1–4) and post count
*   Show/hide post date, author, thumbnail, etc.
*   Control thumbnail size, title font size, colours, borders, background
*   Responsive design – looks great on mobile devices
*   Clean, modern admin settings page with colour pickers
*   Optimized queries for better performance
*   No external dependencies or API calls

== Installation ==
1. Upload the `jass-similar-posts-cards` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings → Jass Similar Posts Cards** and configure the options.
4. Visit a single post – similar posts will automatically appear at the bottom.

== Frequently Asked Questions ==
= Does this plugin work with custom post types? =
Currently only standard WordPress posts are supported.

= Can I disable the similar posts on specific posts? =
Not yet through a post‑by‑post setting, but you can use the filter settings to control which posts appear.

= My thumbnail images look blurry, what can I do? =
Set larger values for thumbnail width and height in the settings – the plugin uses your theme's registered image sizes, so regenerating thumbnails may help.

== Screenshots ==
1. Settings page with card‑based sections.
2. Example of similar posts on the front end.

== Changelog ==
= 1.0.1 =
* Security fix: Added proper escaping for get_the_post_thumbnail()
* Security fix: All outputs now properly escaped with esc_html(), esc_url()
* Added get_safe_post_thumbnail() function for sanitized HTML output
* Improved code security and WordPress VIP compliance

= 1.0.0 =
* Initial release with optimized queries.
* Card-based modern admin settings page.
* Category and tag based filtering.