跳到内容

Ajax Filter Search

v2.2.0

Streetcar Productions · 2016年7月23日 上架

Displays posts or custom post types in a friendly, filterable format using ajax so there's no page reload!

正在使用
60+
评分
4.5 / 5
累计下载
6,987
最近更新
2026年11月19日
2 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

截图

The default feed in the Modern design: category tabs, search, month and year filters, list view.
The default feed in the Modern design: category tabs, search, month and year filters, list view.
Filtered results, with the filters kept in the address bar so the view can be shared.
Filtered results, with the filters kept in the address bar so the view can be shared.
Grid layout.
Grid layout.
Two feeds with different settings on one page.
Two feeds with different settings on one page.
The redesigned settings screen, with a design picker, copyable shortcodes and the optional sort, filter chip and noindex settings.
The redesigned settings screen, with a design picker, copyable shortcodes and the optional sort, filter chip and noindex settings.
The "Ajax Filter Search" block in the editor, with a live preview and controls, including the sort and filter chip options.
The "Ajax Filter Search" block in the editor, with a live preview and controls, including the sort and filter chip options.
The feed on a phone.
The feed on a phone.
The optional sort control and active filter chips, with Clear all.
The optional sort control and active filter chips, with Clear all.

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.
  • Modern and Classic designs – A clean, card-based Modern design for new installs and the original Classic look for sites that already use the plugin. Choose one site wide or per feed.
  • 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"]

Shortcode attributes

All attributes are optional. Anything you leave out uses the setting from Settings > Ajax Filter Search.

  • post_type – post type slug.
  • post_tax – taxonomy slug used for the category tabs (or none).
  • terms – comma separated term slugs to limit the feed to. (filter_by and filter_type are accepted as older names for the same thing.)
  • posts_per_page – 1 to 100.
  • layout – list or grid, the layout the feed starts in.
  • orderby – date, title or modified. order – DESC or ASC.
  • search – a keyword to start with. filter_years / filter_months – start on a year (for example 2025) or month (1 to 12).
  • show_tabs, show_views, show_search, show_months, show_years – true or false.
  • design – modern or classic. Overrides the Appearance setting for this feed.
  • show_sort, show_chips – true or false. The sort control and the active filter chips are off unless you turn them on here, in the block, or under Settings.

Please Rate Ajax Filter Search!

Your ratings make a big difference! If you like and use Ajax Filter Search, please consider taking the time to rate the plugin. Your ratings and reviews will help this plugin grow and provide the motivation needed to keep pushing it forward.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums