Ajax Filter Search
Ajax Filter Search is a small but powerful plugin that displays your posts or custom post type in a list or grid with category tabs, search, month and year filters and pagination, all using ajax so there’s no page reload. A visitor can filter your posts by search keyword, month, year and category to
Ajax Filter Search is a small but powerful plugin that displays your posts or custom post type in a list or grid with category tabs, search, month and year filters and pagination, all using ajax so there’s no page reload.
A visitor can filter your posts by search keyword, month, year and category to get the exact content they’re looking for. It’s a great tool for anyone looking to show a reel of press releases, blog posts, upcoming events, whatever you can think of.
Features
- Gutenberg block and shortcode – Add the “Ajax Filter Search” block, or use the [ajax_filter_search] shortcode anywhere.
- Multiple feeds per page – Every feed has its own post type, categories, layout and filters.
- Shareable links – The first feed on a page keeps its filters and page number in the address bar, so a filtered view can be bookmarked or shared, and the back button works. It also works with JavaScript turned off.
- Fast, light front end – Plain JavaScript (no jQuery), a small stylesheet, and assets that load only on pages that contain a feed. No external fonts or icon libraries.
- Sort and filter chips (optional) – Let visitors sort by newest, oldest, A to Z, recently updated or most commented, and show the active filters as removable chips with a Clear all link. Both are off until you turn them on.
- RSS feed for any view – Every filter state has its own RSS 2.0 feed at /wp-json/afs/v1/feed , built from the same query as the results and listing published posts only.
- Accessible – Labeled form fields, keyboard friendly tabs and buttons, live-region updates and a current-page indicator.
- Easy to theme – Set your accent color in Settings, or override any --afs-* CSS variable. Developers can override the item template and use filters.
- Settings panel – Choose the default post type, taxonomy, posts per page, layout and more under Settings > Ajax Filter Search.
Example shortcodes
[ajax_filter_search] [ajax_filter_search terms="news,press-releases" posts_per_page="12" layout="grid"] [ajax_filter_search post_type="event" post_tax="event_type" orderby="title" order="ASC" show_views="false"]