# Post Grid Master — Post Grids & AJAX Filters

Contributors: mdshuvo, addonmaster  
Tags: post grid, ajax filter, infinite scroll, pagination, taxonomy filter  
Requires at least: 5.8  
Tested up to: 7.1  
Requires PHP: 7.4  
Stable tag: 3.4.26  
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build responsive WordPress post grids, masonry, carousels & custom cards with a visual Gutenberg builder, AJAX filters, load more & infinite scroll.

---

## Overview

**Post Grid Master** (GridMaster) is an all-in-one WordPress **post grid, card builder, and AJAX filter plugin**. Design custom post cards visually with Gutenberg blocks, display posts in responsive CSS Grid, List, True Masonry, Metro Mosaic, Carousel, or Vertical Reels layouts, and let visitors filter and search content instantly with zero page reloads.

Built for bloggers, agencies, publishers, and WooCommerce store owners, Post Grid Master works with every WordPress theme, any Custom Post Type (CPT), any custom taxonomy, and all major page builders — without writing PHP templates.

- **[Live Demos](https://addonmaster.com/demo/gridmaster/)**
- **[WordPress.org Support Forum](https://wordpress.org/support/plugin/ajax-filter-posts/)**
- **[Submit a Support Ticket](https://addonmaster.com/submit-a-ticket/)**
- **[Post Grid Master Pro](https://addonmaster.com/gridmaster/)**

[![Watch Post Grid Master Video Walkthrough](https://img.youtube.com/vi/8Th_jp8YEk4/0.jpg)](https://www.youtube.com/watch?v=8Th_jp8YEk4)

---

## What Can You Build with Post Grid Master?

- **Blog & Resource Hubs:** Filterable article libraries with category pill tabs, live AJAX keyword search, reading time badges, and numbered pagination.
- **Online Magazines & News Portals:** Asymmetric Editorial Metro Mosaic grids with featured lead stories, author avatars, and Load More buttons.
- **Creative Portfolios & Case Studies:** True Masonry project showcases paired with off-canvas category and tag filter drawers.
- **Custom Post Type Directories:** Searchable listings for real estate, jobs, recipes, podcasts, courses, team members, events, or documentation using custom post types and custom fields.
- **Related Posts & Archive Grids:** Context-aware grids that automatically display related articles or adapt to the current category, tag, or CPT archive page.
- **WooCommerce Product Grids & Video Feeds (with Pro):** Storefront catalogs with price sliders, attribute swatches, quick view, wishlist, compare, and 9:16 vertical video reels.

---

## Complete Free Feature Breakdown

### Visual Gutenberg Card Studio Builder (GridMaster 2.0)
- **Visual Drag-and-Drop Card Canvas:** Build and style custom cards visually inside `gridmaster/card` with live block controls.
- **4 Card Layout Modes:** Switch any card between **Vertical**, **Horizontal (Media Left)**, **Horizontal Reverse (Media Right)**, and **Hero Overlay (Cover Image)** with background color, dark mode aesthetics, padding, border, shadow, radius, minimum height, media width, and hover lift controls.
- **18 Free Card Templates:** Standard Vertical, Horizontal List (Media Left & Right), Hero Overlay, Editorial & Magazine, Modern Tech / SaaS, Compact List Row, Ultra Compact Feed Row, Split 50/50 Feature, Minimalist Text-Only, Dark Slate Aesthetic, Masonry Story, Creative Portfolio & Project, Floating Overlapping Box, Centered Aesthetic, Bottom Meta Bar, Inset Border, and Date-First Magazine.
- **One-Click Starter Grid Blueprints:** Apply complete starting setups (Query + Filters + Layout + Card design) including *SaaS Blog & Resource Hub*, *Editorial Metro Magazine*, *Masonry Showcase + Filter Drawer*, and *WooCommerce Storefront + Sticky Sidebar (Pro)*.
- **User-Saved Card Pattern Library:** Save custom card designs as reusable patterns and apply them across grids.
- **Card Block Conditional Visibility:** Show or hide individual card blocks dynamically based on post data or context.
- **Scoped Custom CSS & JS Editors:** Fine-tune any grid with built-in CSS/JS editors, Out-of-the-Box Style Presets, and Starter Script Snippets.
- **Live Responsive Preview Modal:** Inspect Desktop, Tablet, and Mobile layouts before publishing.

### 17+ Dynamic Gutenberg Card Blocks
- **Post Title:** Configurable heading tag, permalink toggle, color, and Desktop/Tablet/Mobile font sizes.
- **Featured Image:** Aspect ratio, `object-fit`, border radius, hover zoom, custom meta key or static image source, and fallback image URL support.
- **Post Excerpt:** Trim excerpt or post content by word or character count with responsive typography.
- **Read More Button:** Custom label, colors, padding, border radius, and responsive font size.
- **Post Date & Modified Date:** Display published dates or "Updated on" timestamps in any date format.
- **Post Author & Author Avatar:** Author display name and avatar support for multi-author publications.
- **Taxonomy Terms:** Clickable category, tag, or custom taxonomy badges.
- **Custom Post Meta:** Display custom fields (ACF, Meta Box, Pods, or native post meta) with custom prefix/suffix labels.
- **Comments Count & Reading Time:** Engagement counters and automatic reading time estimates.
- **Post Format Icon & Custom Badge:** Format indicators and customizable highlight badges.
- **Social Share:** Built-in share buttons for X/Twitter, Facebook, LinkedIn, and Copy Link.
- **Shortcode & Custom HTML Blocks:** Embed third-party shortcodes or custom HTML inside individual cards.

### 6 Modern Grid & Showcase Layouts
- **CSS Grid:** Responsive multi-column equal-height post grids.
- **Horizontal List:** Clean editorial and directory rows with left or right media.
- **True Masonry:** Dynamic Pinterest-style masonry for varied media heights and portfolios.
- **Editorial Metro Mosaic:** Asymmetric magazine grids with prominent lead cards.
- **Accessible Carousel / Slider:** Interactive post carousels with arrows, dots, keyboard navigation, and play/pause autoplay controls.
- **9:16 Vertical Reels Feed:** Full-height vertical feed navigation with swipe, arrow, and keyboard controls.
- **Classic Pre-Built Templates:** 3 classic grid templates (`Default`, `Style 2`, `Style 3`) for shortcode workflows.

### AJAX Taxonomy Filters, Live Search & Filter Placements
- **6 Free Filter Facets:** Taxonomy Tabs (pills/tabs), Taxonomy Dropdown, Taxonomy Checkboxes, Taxonomy Radio Buttons, Live AJAX Search Input, and Reset Button.
- **4 Adaptive Filter Placements:** Top Bar, Sticky Left Sidebar, Sticky Right Sidebar, and Off-Canvas Mobile Filter Drawer with customizable button label.
- **4 Classic Filter Styles & Controls:** Post count badges, optional "All" button toggle, custom filter headings, collapsible filter groups, or filterless display.
- **Shareable Deep-Link URLs:** Active filter, search, and page states sync to `gm_*` URL parameters for bookmarking and sharing.

### AJAX Pagination, Load More & Infinite Scroll
- **Numbered AJAX Pagination** with smart ellipsis (`1 2 ... 8 9`)
- **Load More Button** for on-demand appending
- **Infinite Scroll** for automatic loading on scroll
- **Post Load Animations** for smooth entrance effects

### Context-Aware WordPress Query Builder
- **Single & Multi-Post-Type Queries:** Query Posts, Pages, or combine multiple Custom Post Types.
- **Taxonomies & Terms:** Filter by any taxonomy, include specific terms, or toggle empty terms.
- **Precision Query Controls:** Posts per page, offset-aware pagination, author filtering, include/exclude post IDs (`post__in`, `post__not_in`), and **Exclude Current Post**.
- **Dynamic Context Modes:** **Current Archive** auto-detection and **Related Posts** mode.
- **Sorting & Media:** Order by date, title, author, ID, menu order, comment count, or random (ASC/DESC) with selectable thumbnail sizes.

### Native Page Builder Integrations & Shortcodes
Embed saved grids with live previews and one-click **Edit this grid** links:
- **Gutenberg (Block Editor)** — Native block with live canvas preview
- **Elementor** — Native widget
- **Beaver Builder** — Native module
- **Bricks Builder** — Native element
- **WPBakery Page Builder** — Native element
- **Classic WordPress Widgets** — Sidebar & widget areas
- **Shortcodes** — `[gridmaster]` plus legacy `[am_post_grid]` and `[asr_ajax]` for any builder or PHP template

### Speed, Core Web Vitals, Accessibility & Portability
- **Conditional Asset Loading:** Frontend scripts and styles enqueue only on pages displaying a grid.
- **Core Web Vitals & LCP:** Prioritizes the first card's featured image for faster Largest Contentful Paint.
- **WCAG-Friendly Accessibility:** Screen-reader live status announcements (`aria-live`) and keyboard-accessible controls.
- **Portable `.gridmaster.json` Export & Import:** Move complete grid configurations between staging and production in one click.
- **Theme Friendly & Translation Ready:** Scoped CSS and `ajax-filter-posts` localization support.

---

## Upgrade to Post Grid Master Pro

**[Post Grid Master Pro](https://addonmaster.com/gridmaster/)** extends GridMaster 2.0 with full eCommerce merchandising, multi-facet filtering, and video capabilities:

- **16 Pro Gutenberg Card Blocks:** WooCommerce Product Price, AJAX Add to Cart, Product Star Rating, Sale/Custom Badge, Stock Status, Sale Countdown Timer, Variation Swatches, Quick View Modal, Wishlist Bookmark Button, Wishlist Drawer (`[gridmaster_wishlist_drawer]`), Product Compare Drawer & Table, B2B Request a Quote Modal, Product Meta, Action Bar, **Card Video** (inline hover/click player with single-active coordination), and **Video Lightbox**.
- **15+ Pro Card Templates:** E-Commerce Product Starter, Quick View & Badge, Product Horizontal Row, Flash Sale & Countdown, Fashion & Apparel Hover, Electronics & Tech Spec, Wholesale / B2B Quick-Order Row, Grocery Instant-Stepper, B2B Quote Catalog, Wishlist Showcase, Video Spotlight, Podcast Episode, Video Course, and TikTok / Reels / Shorts 9:16.
- **10 Advanced Pro Filter Facets & Dynamic Recounts:** Multi-Select Taxonomy Pills, Date Range Picker, Custom Field / Meta Filter, Numeric Meta Range Slider, WooCommerce Price Range Slider, Attribute Swatches, Star Rating Filter, Sale/In-Stock/Featured Toggles, Sort Dropdown, and Active Filter Chips Bar — powered by cached Dynamic Facet Term Recounts (`Facet_Recounter`).
- **WooCommerce 3rd-Party Extension Bridge:** Bridges WPClever, YITH, TI WooCommerce Wishlist, Variation Swatches plugins, and Astra / OceanWP / Flatsome / Blocksy Quick Views with automatic fallback to GridMaster Pro's native engines.
- **Pro Layouts, Taxonomy Visuals & Full Slider Controls:** 10 Pro classic grid templates, 2 Pro filter styles, Taxonomy Images & Colors, archive auto-selection (post type, taxonomy, initial term), custom heading tags & per-device font sizes, responsive columns & gaps, thumbnail link targets, and full carousel/slider controls.

---

## Privacy Policy & External Services

Post Grid Master includes the [Appsero](https://appsero.com) SDK to collect optional, non-sensitive telemetry data only when a site administrator explicitly opts in via the admin notice.

Appsero SDK **does not collect any data by default**. Telemetry is collected **only after user confirmation** to troubleshoot issues and improve the plugin. See the [Appsero Privacy Policy](https://appsero.com/privacy-policy/) for details.

---

## Installation

### Automatic Installation (Recommended)
1. Go to **Plugins → Add New** in your WordPress dashboard.
2. Search for **Post Grid Master**.
3. Click **Install Now**, then **Activate**.
4. Open **Post Grid Master** to create your first grid from a Starter Blueprint or custom card layout.

### Manual Installation
1. Download and unzip the plugin package.
2. Upload the `ajax-filter-posts` folder to `/wp-content/plugins/`.
3. Activate **Post Grid Master** from the **Plugins** menu.
4. Create a grid under **Post Grid Master** and embed it via Gutenberg, Elementor, Beaver Builder, Bricks, WPBakery, Classic Widgets, or `[gridmaster]`.

---

## Frequently Asked Questions

**How do I create and display my first post grid?**  
Open **Post Grid Master**, select a Starter Grid Blueprint or design your card in the Gutenberg Card Studio, configure your query, filters, and pagination, save, and embed via your page builder widget or shortcode.

**Which page builders are supported natively?**  
Native widgets, modules, and elements with live previews are included for Gutenberg, Elementor, Beaver Builder, Bricks Builder, WPBakery Page Builder, and Classic WordPress Widgets. Shortcodes work in any builder or PHP template.

**Can I filter Custom Post Types and Custom Taxonomies with AJAX?**  
Yes. Single and multi-post-type queries and all registered custom taxonomies (ACF, CPT UI, Pods, Meta Box, WooCommerce, etc.) are fully supported.

**Can I display custom fields inside cards?**  
Yes. Use the **Post Meta** block to render any custom field with prefix/suffix labels, or load a custom meta key URL in the **Featured Image** block. Pro adds Meta Filter and Numeric Meta Range Slider facets.

**Can visitors bookmark or share a filtered grid URL?**  
Yes. Filter, search, and pagination states sync to shareable `gm_*` URL parameters.

**Can I place filters in a sidebar or mobile drawer?**  
Yes. Choose Top, Sticky Left Sidebar, Sticky Right Sidebar, or an Off-Canvas Mobile Filter Drawer.

**Can I export a grid from staging and import it on production?**  
Yes. Use one-click `.gridmaster.json` Export & Import to move complete grid designs and settings between sites.

**Will this plugin slow down my website?**  
No. Frontend scripts and styles enqueue conditionally only when a grid is present, and the first card's featured image is prioritized for LCP performance.

**Are legacy shortcodes still supported?**  
Yes. `[gridmaster]`, `[am_post_grid]`, and `[asr_ajax]` remain fully supported for backward compatibility.

---

## Screenshots

1. Visual Gutenberg Card Studio Builder with drag-and-drop block tree, live card canvas, and surface styling controls
2. One-click Starter Grid Blueprints for SaaS Blogs, Editorial Metro Magazines, Masonry Showcases, and WooCommerce Storefronts
3. Frontend responsive post grid with AJAX category tabs, live keyword search, reading time, and instant reset
4. Editorial Metro Mosaic layout featuring an asymmetric lead story and AJAX taxonomy filter chips
5. Accessible Editorial Carousel and Slider layout with previous/next arrows and dot navigation
6. Layout Engine & Grid Presets (Standard Grid, Masonry Bricks, Metro Mosaic, Accessible Carousel, and Vertical Reels)
7. AJAX Filter Facets Builder with Free taxonomy/search facets and Pro WooCommerce, Date Range, Meta Filter, and Dynamic Recount options
8. Context-Aware Query Builder with multi-post-type queries, offset pagination, Exclude Current Post, Current Archive, and Related Posts modes
9. Native Gutenberg Block Editor integration with live canvas preview and one-click "Edit this grid in GridMaster"
10. WooCommerce Storefront grid with sticky left sidebar facets (Price Slider, Color Swatches, Star Rating), Sale Badges, Countdown Timers, and AJAX Add to Cart (Pro)
11. 9:16 Vertical Video Reels feed with swipe/keyboard navigation, audio toggle, and category filter tabs (Pro)

---

## Changelog

### 3.4.26
- Improved: Updated WordPress.org plugin icon (`icon.svg`) with a pure-CSS animated Spark Grid 2×2 sliding grid design (`prefers-reduced-motion` compliant).

### 3.4.25
- Added: GridMaster 2.0 visual Gutenberg Card Studio Builder, responsive card layouts, and live device preview modal.
- Added: 18 Free Card Templates, Starter Grid Blueprints, User-Saved Card Pattern Library, and scoped Custom CSS/JS editors with presets.
- Added: Sidebar split & off-canvas mobile filter drawer (`left_sidebar`, `right_sidebar`, `drawer`), Masonry & Metro mosaic layouts, Accessible Carousel, and 9:16 Vertical Reels layout.
- Added: Context-aware `Query_Builder` (`offset` pagination, multi-`post_type`, `post__in`, `post__not_in`, `exclude_current`, `current_archive`, `related_posts`), deep-link `gm_*` URL hydration, smart ellipsis pagination, and Card Block Conditional Visibility (`gmVisibility`).
- Added: Native page builder integrations for Gutenberg, Elementor, Beaver Builder, Bricks Builder, WPBakery Page Builder, and Classic Widgets.
- Added: Portable Grid JSON Export & Import (`GET /grids/<id>/export`, `POST /grids/import`), live screen-reader status announcements, and first-card LCP image prioritization.
- Security: Enforced `manage_options` capability guard, strict action allowlist, and recursive request sanitization on `gridmaster_ajax`, plus full v2 runtime packaging inventory.

### 3.4.18
- Improved: Release packaging with recursive file-integrity checks and verified WordPress.org deployment.
- Updated: WordPress compatibility metadata to 7.1.

### 3.4.14
- Fixed: Security issues and Plugin Check (PCP) warnings.
- Updated: Compatibility with WordPress 6.8.2.

### 3.4.13
- Fixed: Security issues and Plugin Check (PCP) warnings.
- Changed: Standardized text domain to `ajax-filter-posts`.
- Updated: Compatibility with WordPress 6.7.1.

### 3.4.9
- Fixed: Security issues.
- Updated: Compatibility with WordPress 6.5.x.

### 3.4.8
- Added: Nonce verification on post grid AJAX requests.
- Fixed: Security issues.
- Updated: Compatibility with WordPress 6.4.3.

### 3.4.7
- Added: Filter Heading option, Toggle Filter Items option, and `gridmaster-no-posts-found` filter hook.
- Fixed: Translatable "All" filter label and minor code improvements.

### 3.4.6
- Improved: Minified frontend CSS and JS assets.
- Fixed: Minor code improvements.
- Updated: Tested up to WordPress 6.4.3.

### 3.4.3
- Added: Excerpt length type option (Characters or Words).
- Fixed: Minor code improvements.
- Updated: Tested up to WordPress 6.3.2.

### 3.4.2
- Added: Thumbnail size function, submenu navigation, and Pro demo preview links.
- Fixed: Minor CSS, admin panel, and code adjustments.

### 3.4.1
- Fixed: "Cannot modify header information" warning and minor code issues.

### 3.4.0
- Changed: Rebranded from Post Grid with Ajax Filter to Post Grid Master and rebuilt from the ground up.
- Added: Visual Shortcode Generator with backend grid, filter, and pagination previews, 2 grid layouts, 3 filter layouts, excerpt controls, and customizable Read More button text.
- Maintained: Full backward compatibility with legacy shortcodes.

### 3.3.0
- Updated: WordPress 6.1.1 compatibility.

### 3.2.1
- Added: Static initial load on page load.

### 3.1.5
- Fixed: Initial loading issue on page load.
- Updated: Tested up to WordPress 6.0.2.

### 3.0.4
- Fixed: Nonce verification issue.
- Updated: Tested up to WordPress 6.0.

### 3.0.0
- Added: Load More button pagination, Infinite Scroll, post load animation effects, and term-based post restrictions.
- Fixed: General code improvements.

### 2.2.1
- Added: `order` and `orderby` shortcode parameters.

### 2.2.0
- Added: Show/hide specific category terms and toggle empty category terms.
- Updated: WordPress 5.6.2 compatibility.

### 2.1.0
- Updated: WordPress 5.6 compatibility.

### 2.0.4
- Fixed: Prevented draft posts from appearing in grids.

### 2.0.2
- Improved: AJAX pagination, CSS styling, and loading performance.

### 2.0.0
- Added: Multiple grids per page support and extended shortcode parameters (`posts_per_page`, `btn_all`, `show_filter`).
- Improved: AJAX and speed optimizations.

### 1.0.4
- Added: New grid design layout and multiple grid support.
- Improved: AJAX and performance enhancements.

### 1.0.0
- Initial release.
