=== Simple Gallery with Filter ===
Contributors: jitendra742744
Donate link: https://come2theweb.com/
Tags: gallery, filter gallery, masonry gallery, image gallery, portfolio
Requires at least: 4.6
Tested up to: 7.1
Requires PHP: 5.6
Stable tag: 2.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create a simple filterable gallery with category filters, shortcodes, widgets, masonry layout and pagination.

== Description ==

Create a simple gallery with filter options using this plugin. Easily create an Isotope-style filter gallery that can be used for galleries, portfolios, teams, or services by category.

Simply use via shortcode or widgets. The plugin is lightweight, free to use, and includes pagination (Load More) support.

Watch the tutorial video:
https://www.youtube.com/watch?v=wsbPadxeCGY

= Features =
* Gallery with thumbnails
* Category filter option
* Pagination (Load More)
* Easily set number of columns
* Fully responsive
* Masonry style layout
* Multiple gallery support
* Gallery with or without filter
* Shortcodes available
* Widget support
* Free to use – no ads or upsells

= Shortcodes =

**Gallery with filter**
* Basic: `[c2tw_sgwf]`
* With width: `[c2tw_sgwf width='600']`
* With columns: `[c2tw_sgwf col='2']`

**Individual gallery (without filter)**
* Basic: `[c2twsg id="GALLERY_ID"]`
* With width / columns / masonry: `[c2twsg id="GALLERY_ID" width='600' col='2' style="masonry"]`

**Pagination / Load More**
* `[c2twsg id="GALLERY_ID" nop="10"]`
* Custom button text: `[c2twsg id="GALLERY_ID" nop="10" loadmore_label="Show More Images"]`

== Installation ==

1. Upload the `simple-gallery-with-filter` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Simple Gallery with Filter** in the admin menu to configure global options.
4. Create galleries and use the shortcodes or widget.

== Frequently Asked Questions ==

= How do I add a filterable gallery? =
Use the shortcode `[c2tw_sgwf]` or the provided widget.

= How do I show a single gallery without filters? =
Use `[c2twsg id="YOUR_GALLERY_ID"]`.

= Does pagination work with filters? =
Yes. Pagination works with category filters and masonry layouts.

= Can I customize the Load More button text? =
Yes. Use the `loadmore_label` attribute in the shortcode.

= Where can I get support? =
Contact us at come2theweb@gmail.com or info@come2theweb.com.

== Screenshots ==

1. WordPress backend plugin view
2. Simple gallery with filter frontend view
3. WordPress filter category
4. Filter active menu view
5. Simple gallery with filter widget
6. Option to show masonry style
7. Shortcode for individual gallery
8. New pagination and Load More feature

== Changelog ==

= 2.4.1 =
* Removed remote PayPal tracking pixel (no external resource calls)
* Removed automatic YouTube iframe from admin page; replaced with user-initiated link
* Added nonce verification and capability checks when saving gallery meta (CSRF protection)
* Improved sanitization of gallery image IDs and captions

= 2.4 =
* Fixed all WordPress.org guideline issues
* Removed activation email that sent site data without consent
* Added proper sanitization callbacks for settings
* Added ABSPATH protection against direct file access
* Fixed Plugin URI (was returning 404)
* Updated Contributors, Tested up to 7.1, reduced tags to 5
* Fixed short description length and internationalization
* Code cleanup and security improvements

= 2.3.2 =
* Previous stable version

= 2.3 =
* Fix load more duplicate image issue
* Improved Masonry compatibility
* Performance improvements

= 2.2 =
* Added pagination and Load More options

= 2.1 =
* Improved sanitization and code structure

= 2.0 =
* Introduced masonry-style layout and individual gallery options

== Upgrade Notice ==

= 2.4.1 =
Security and guideline fixes: removes remote pixel/iframe and adds nonce protection for gallery meta saves. Safe to update.

= 2.4 =
Important update required to comply with WordPress.org guidelines. Removes activation tracking and fixes multiple review issues. Safe to update.