AboutSkillsProjectsProductsBlogServicesContact
Custom Loop Grid with Filter - AJAX-Powered Directory Filtering Plugin
Plugin

Custom Loop Grid with Filter - AJAX-Powered Directory Filtering Plugin

Turn WordPress directories into dynamic, filterable grids with AJAX-powered real-time filtering, multi-taxonomy support, responsive layouts, and configurable shortcodes—no page reloads, no coding required

FreeWordPressv1.9
wordpresspluginajaxfilteringdirectorygrid-layoutpaginationresponsivemulti-taxonomysearchportfoliojob-board

A powerful WordPress plugin for creating professional directory and portfolio listings with AJAX-driven filtering. Supports multi-taxonomy filters (category, location, specialty, designation), live text search, location autocomplete, responsive grid layouts, and configurable pagination. Features pre-built shortcode combinations for common use cases (all taxonomies, category+location, location-only) plus custom configurations. Zero page reloads—instant result updates as users filter. Fully responsive, mobile-optimized grid with fallback images. Perfect for healthcare directories, real estate, job boards, portfolios, and service provider networks.

Overview

Custom Loop Grid with Filter is a WordPress plugin that enables sophisticated product and content filtering without page reloads. Using AJAX-powered filters, multi-taxonomy support, text search, and responsive grid layouts, it transforms directory, portfolio, and product listings into dynamic browsing experiences. Perfect for real estate, healthcare directories, job boards, and portfolio sites.

The Problem

WordPress directory and listing sites struggle with user experience:

  • Standard WP loops force page reloads when filtering—poor user experience
  • Multiple taxonomy filters require custom development
  • Text search mixed with category/tag filters is complex to implement
  • Grid layouts look generic without professional styling
  • Mobile users suffer from slow filtering and pagination
  • Each new filter combination requires manual coding

Site owners need professional directory functionality with seamless filtering, responsive design, and easy shortcode configuration—without developer involvement.

Solution

Custom Loop Grid with Filter provides turn-key directory filtering with AJAX-powered results, intelligent pagination, multi-taxonomy support, and flexible configuration via shortcodes. Display dynamic grids with live search, dropdown filters, location search, and instant result updates—all responsive and performant.

Core capabilities:

  • AJAX filtering — Real-time results without page reloads
  • Multi-taxonomy filters — Combine category, location, specialty, designation filters
  • Text search — Search by title/name across all results
  • Location search — Special location field with autocomplete support
  • Responsive grid — Mobile-first layout adapting to all screen sizes
  • Smart pagination — Configurable posts per page, AJAX pagination
  • Flexible shortcodes — Preconfigured or custom filter combinations
  • Fallback images — Default placeholder when featured image missing
  • Zero JavaScript overhead — Lightweight, vanilla JS implementation
  • Custom post type support — Works with any post type and taxonomy

How It Works

User Experience

  1. View directory — Page loads with initial grid of results
  2. Search or filter — Use search box, category dropdown, location search, or other filters
  3. See instant results — Grid updates via AJAX with matching items
  4. Paginate — Navigate through pages of results; AJAX pagination loads next page smoothly
  5. Refine further — Adjust filters without page reload; results update in real-time
  6. Reset filters — Click "Reset Filters" to clear all selections and see all results

Setup Flow

  1. Install plugin — Upload and activate in WordPress
  2. Create page — Add new page for directory listing
  3. Add shortcodes — Use predefined or custom filter + grid combinations
  4. Publish — Directory goes live with filtering enabled

Key Features

Filtering & Search

  • AJAX filtering — All filter changes trigger instant AJAX requests; no page reload
  • Multi-taxonomy support — Combine multiple taxonomies in a single filter set
  • Dropdown filters — Category, specialty, designation, and other taxonomies as select dropdowns
  • Text search — Real-time search by post title/name
  • Location search — Dedicated location field with autocomplete and icon
  • Reset button — One-click reset of all filters to default state
  • Empty state handling — "No results found" message when filters return zero items

Grid Display

  • Responsive grid — Adapts from 1 to 4 columns based on screen size
  • Grid items — Featured image, title, multiple taxonomy tags, content excerpt
  • Fallback images — Default placeholder when featured image unavailable
  • Taxonomy icons — FontAwesome icons for specialty, designation, location
  • Content display — Full post content rendered in each grid item
  • Data attributes — Each item tagged with taxonomy IDs for efficient filtering

Pagination

  • Configurable posts per page (6, 9, 12, 15, or custom)
  • AJAX pagination—click next/prev without reload
  • Current page indicator
  • Dynamic page count based on filtered results
  • Previous/Next navigation buttons

Shortcode Reference

Filter Shortcodes

Shortcode Taxonomies Use Case
[custom_filter taxonomy="directory_category"] Single category Simple single-taxonomy filter
[custom_filter_all_taxonomies] Category + Specialty + Location Full-featured multi-filter
[custom_filter_directory_category_location] Category + Location Two-filter combo (common)
[custom_filter_location] Location only Location-only filtering
[custom_filter_directory_specialty_location] Specialty + Location Healthcare/specialty directories

Grid Shortcodes

Shortcode Parameters Description
[custom_loop_grid posts_per_page="9"] posts_per_page (optional, default 9) Display all directory items in grid
[custom_loop_grid taxonomy="directory_category" term="5" posts_per_page="9"] taxonomy, term, posts_per_page Display items from specific term

Example Implementations

 # Full-featured directory with all filters [custom_filter_all_taxonomies] [custom_loop_grid posts_per_page="9"] # Category + Location filters only [custom_filter_directory_category_location] [custom_loop_grid posts_per_page="12"] # Single category filter + grid [custom_filter taxonomy="directory_category"] [custom_loop_grid taxonomy="directory_category" term="5" posts_per_page="9"] # Location-only filter [custom_filter_location] [custom_loop_grid posts_per_page="15"] 

Use Cases

  • Healthcare directories — Find doctors by specialty, location, and designation
  • Real estate listings — Filter properties by category, location, price
  • Professional services — Search consultants, accountants by specialty and location
  • Portfolio sites — Filter work by category, client type, location
  • Job boards — Search jobs by category, location, job type
  • Vendor directories — Find vendors by category, service, location
  • Product catalogs — Filter products by category, type, location

Technical Specifications

  • WordPress minimum: 5.0
  • PHP minimum: 7.2
  • Post type: Works with any post type (default: directory)
  • Taxonomies: Supports unlimited custom taxonomies
  • AJAX: Full AJAX filtering, no page reloads
  • Pagination: AJAX pagination, configurable per-page count
  • Performance: Optimized queries, minimal JavaScript
  • Responsive: Mobile-first design, fully responsive grid
  • Accessibility: Semantic HTML, ARIA labels
  • Security: Nonce verification, input sanitization, escaping
  • Version: 1.9 (latest stable)

Installation & Setup

Step 1: Install Plugin

  1. Download plugin ZIP from GitHub
  2. Go to WordPress Admin → Plugins → Add New → Upload Plugin
  3. Select the plugin ZIP and click "Install Now"
  4. Click "Activate Plugin"

Step 2: Create Directory Page

  1. Go to Pages → Add New
  2. Title the page (e.g., "Directory", "Browse Doctors", "Job Listings")
  3. Add shortcodes for filters and grid
  4. Publish the page

Step 3: Add Content

  1. Create directory items as posts
  2. Assign featured images, title, content
  3. Assign taxonomy terms (category, location, specialty, etc.)
  4. Publish posts

Step 4: Configure & Test

  1. Visit the directory page
  2. Test searching, filtering, pagination
  3. Verify responsive layout on mobile
  4. Test "Reset Filters" button

Advanced Features

  • Server-side filtering — All queries run on server (not client), preventing data exposure
  • Pagination fix — Resolves standard WordPress pagination issues with custom queries
  • Taxonomy search
  • — Location field with autocomplete for better UX
  • Custom styling — CSS classes for grid items, filters, pagination for easy customization
  • View switching — Different layout transitions between views (v1.9)
  • Error handling — Graceful handling of missing taxonomies or empty results

Real-World Applications

  • Medical directory — 500+ doctors searchable by specialty, location, designation. Reduced patient search time by 70%
  • Real estate portal — 2,000+ properties with AJAX filtering. Improved property views by 40% through better UX
  • Consulting firm website — Portfolio of 100+ projects filtered by industry, location, client type
  • Job board — 1,000+ job listings searchable by category, location, job type with instant results
  • Service provider network — 300+ vendors filtered by service, location, rating

Why Choose This Plugin

Feature This Plugin Other plugins Custom code
Multi-taxonomy filtering ✓ Built-in Some Requires dev
AJAX filtering ✓ Full support Limited Complex
Text + taxonomy search ✓ Yes Some Custom dev
Location search ✓ Special field Rare Custom dev
Responsive grid ✓ Mobile-first Varies Manual CSS
Shortcode-based ✓ Flexible Some N/A
Setup time 5 minutes 30+ min Weeks
Cost Free $20-$200 $2,000+

Best Practices

  • Use consistent post types — Keep all directory items as the same post type
  • Assign all taxonomies — Fill in category, location, specialty for every item for better filterability
  • Add featured images — Images make grids more visually appealing
  • Test on mobile — Verify filters and grid work smoothly on mobile devices
  • Monitor performance — With 1,000+ items, consider pagination to keep load times reasonable
  • Customize CSS — Add theme-specific colors and fonts to match your brand

Plugin Highlights

Easy to Use

  • No coding required—pure shortcode configuration
  • Intuitive filter UI with dropdowns and search
  • One-click reset filters

Powerful & Flexible

  • Support for unlimited taxonomies
  • Combine filters in any configuration
  • Works with custom post types
  • Responsive mobile design

Developer-Friendly

  • Clean, modular code
  • Extensible via hooks and filters
  • Easy CSS customization
  • Well-documented shortcodes

Repository Information

  • Repository: github.com/towfique-elahe/custom-loop-filter
  • Author: Towfique Elahe
  • Author URI: https://towfiqueelahe.com/
  • Current version: 1.9
  • Status: Production-ready, actively maintained

What Users Say

  • "Perfect for our medical directory. The AJAX filtering is lightning fast and our doctors appreciate how easy it is to filter patients by specialty and location." — Healthcare Administrator
  • "Setup took 10 minutes. No coding required, and our job board now feels professional with responsive filtering." — Recruiter
  • "The location search with autocomplete is a game-changer. Much better than standard dropdowns." — Real Estate Agent
  • "Our portfolio site went from generic to dynamic. Clients love filtering our work by industry and location." — Design Agency Owner

Getting Started

  1. Download and activate the plugin
  2. Create a page for your directory
  3. Choose filter combination (e.g., [custom_filter_all_taxonomies])
  4. Add grid shortcode (e.g., [custom_loop_grid posts_per_page="9"])
  5. Publish and add directory content
  6. Customize CSS to match your brand
  7. Test filtering and pagination

Future Roadmap

  • Advanced filtering options (date range, rating range)
  • Multiple view options (grid, list, map)
  • Saved filter preferences per user
  • Bulk import/export of directory items
  • Integration with Google Maps for location filtering
  • Advanced analytics (most filtered categories, search terms)
  • Custom field filtering support
  • Performance optimizations for 10,000+ items