Title: Filter Anything
Author: Kalrav Joshi
Published: <strong>2022 年 8 月 1 日</strong>
Last modified: 2023 年 4 月 28 日

---

搜索插件

![](https://ps.w.org/filter-anything/assets/banner-772x250.png?rev=2764355)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/filter-anything/assets/icon-256x256.png?rev=2764355)

# Filter Anything

 作者：[Kalrav Joshi](https://profiles.wordpress.org/vardaamkalrav/)

[下载](https://downloads.wordpress.org/plugin/filter-anything.zip)

 * [详情](https://cn.wordpress.org/plugins/filter-anything/#description)
 * [评价](https://cn.wordpress.org/plugins/filter-anything/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/filter-anything/#developers)

 [支持](https://wordpress.org/support/plugin/filter-anything/)

## 描述

Filter Anything offers Advance filters for any POST or USER data. You can instantly
create any type of Directory with your choice of filters in different layout options
using a simple shortcode.

At a glance, this plugin adds the following:

 * Instant Directory creation using shortcode
 * Ajax pagination
 * Multiple Layouts like: Fullwidth or Sidebar
 * Adjustable Grid column count in results
 * Filter any post type by: Meta field, Taxonomy, Title & Content, Post Date, Author
   or your own custom query
 * Filter any user type by: Meta field, Display Name, Email, Username, Registration
   date, Role or your own custom query
 * Supports changing Directory wise Label & button Titles
 * Set Order By and Per page count of the resulted data
 * customize look and feel by adding Quick CSS

Filter Anything acts as a standalone Directory to show your advance custom filters
and results in your own choice of format.

### Advance Usage (For Advance Users)

It’s very easy to modify result item template and to add your own custom query by
using Filters:

#### Filter for modifying entry html (xx is filter id)

    ```
    function example_callback( $html, $entry ) {
        ...
        return $html;
    }
    add_filter( 'wfa_directory_entry_html_xx', 'example_callback', 10, 2 );
    ```

#### Filter for modifying filter query args (xx is filter id)

    ```
    function example_callback( $args, $filters, $form_data ) {
        ...
        return $args;
    }
    add_filter( 'wfa_directory_query_args_xx', 'example_callback', 10, 3 );
    ```

#### Form submit to another page

For showing only form and submitting on another url use following shortcode example

    ```
    [wfa_filter id="xx" submit_url="https://www.example.com/some-other-page"]
    ```

## 屏幕截图

[⌊Full width horizontal filter layout⌉⌊Full width horizontal filter layout⌉[

Full width horizontal filter layout

[⌊Sidebar filter layout⌉⌊Sidebar filter layout⌉[

Sidebar filter layout

[⌊Filter query settings edit⌉⌊Filter query settings edit⌉[

Filter query settings edit

[⌊Filter layout settings edit⌉⌊Filter layout settings edit⌉[

Filter layout settings edit

[⌊Filter fields edit⌉⌊Filter fields edit⌉[

Filter fields edit

[⌊Filter directory default text edit⌉⌊Filter directory default text edit⌉[

Filter directory default text edit

[⌊List of Filters in admin⌉⌊List of Filters in admin⌉[

List of Filters in admin

## 评价

![](https://secure.gravatar.com/avatar/9eeddb6174fc30adeab736baf1972190d4a706297f4daec3c35180a90b5b116c?
s=60&d=retro&r=g)

### 󠀁[Good](https://wordpress.org/support/topic/good-7937/)󠁿

 [atalialourenco](https://profiles.wordpress.org/atalialourenco/) 2023 年 4 月 27
日

Good filter.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/filter-anything/reviews/)

## 贡献者及开发者

「Filter Anything」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Kalrav Joshi ](https://profiles.wordpress.org/vardaamkalrav/)

[帮助将「Filter Anything」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/filter-anything)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/filter-anything/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/filter-anything/)，或通过[RSS](https://plugins.trac.wordpress.org/log/filter-anything/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/filter-anything/)。

## 更新日志

#### 0.1

Initial release.

#### 0.1.1

 * Feature: Sort by and Total records counter added
 * Improvement: Prevent shortcode from being used multiple time on same page
 * Fix: Allow results to show even when no filters are selected
 * Fix: jQuery issues in Traditional themes is fixed, Now Filter will work even 
   if jquery is added in footer

#### 0.1.2

 * Fix: Taxonomy and Post type selection on filter is now lazy loaded. So, all the
   lately registered post types and Taxonomies can be selected
 * Fix: Hooks are modified to avoid conflicts
 * Fix: css changes applied to better support Enfold theme

#### 0.1.3

 * Improvement: To show only child terms in filter you just need to enter slug instead
   of termID*
 * Fix: Multiple checkbox filter was only applying last selected entry, This is 
   fixed now*
 * Fix: Added suppress_filters is query to prevent other plugins from interfering
   the results*

#### 0.1.4

 * Improvement: Added post html classes on each article for better CSS flexibility*
 * Improvement: Added Taxonomy Pre Filters support to restrict directory results
   for selected taxonomy terms*

## 额外信息

 *  版本 **0.1.4**
 *  最后更新：**3 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.2.9**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/filter-anything/)
 * 标签
 * [ajax pagination](https://cn.wordpress.org/plugins/tags/ajax-pagination/)[directory](https://cn.wordpress.org/plugins/tags/directory/)
   [filter](https://cn.wordpress.org/plugins/tags/filter/)[post filter](https://cn.wordpress.org/plugins/tags/post-filter/)
 *  [高级视图](https://cn.wordpress.org/plugins/filter-anything/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/filter-anything/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/filter-anything/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/filter-anything/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/filter-anything/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/filter-anything/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/filter-anything/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/filter-anything/reviews/)

## 贡献者

 *   [ Kalrav Joshi ](https://profiles.wordpress.org/vardaamkalrav/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/filter-anything/)