
內容簡介
Filter Anything 提供了對於任何文章或使用者數據的進階過濾。您可以使用簡單的短代碼即可瞬間建立任何類型的目錄,並選擇不同的佈局選項。
簡要來看,此外掛包括以下功能:
使用短代碼即可瞬間創建目錄
Ajax 分頁
多種佈局,例如:全寬度或側邊欄
可調整的結果中網格欄位的數量
按以下方式篩選任何文章類型:元欄位、分類、標題和內容、發佈日期、作者或您自己的自定義查詢
按以下方式篩選任何使用者類型:元欄位、顯示名稱、電子郵件、使用者名稱、註冊日期、角色或您自己的自定義查詢
支援更改目錄的標籤及按鈕標題
設置結果數據的排序及每頁呈現的項目數量
透過添加快速 CSS 來自訂外觀
Filter Anything 作為獨立的目錄顯示您的進階自定義過濾和結果,以您自己選擇的格式呈現。
進階用法(適用於進階使用者)
通過使用篩選器,很容易修改結果項目模板並添加自己的自定義查詢:
用於修改輸入 html 的篩選器(xx 是篩選器 ID)
function example_callback( $html, $entry ) {
...
return $html;
}
add_filter( 'wfa_directory_entry_html_xx', 'example_callback', 10, 2 );
用於修改篩選器查詢引數的篩選器(xx 是篩選器 ID)
function example_callback( $args, $filters, $form_data ) {
...
return $args;
}
add_filter( 'wfa_directory_query_args_xx', 'example_callback', 10, 3 );
將表單提交到另一個頁面
若要僅顯示表單並提交至另一個 URL,請使用以下短代碼範例
[wfa_filter id="xx" submit_url="https://www.example.com/some-other-page"]
外掛標籤
開發者團隊
原文外掛簡介
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"]
