[WordPress] 外掛分享: Filter Anything

WordPress 外掛 Filter Anything 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Filter Anything」是 2022-07-31 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2023-04-28,距離現在已有 736 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

vardaamkalrav |

外掛標籤

filter | directory | post filter | advance filters | ajax pagination |

內容簡介

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"]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Filter Anything」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.1.1 | 0.1.2 |

延伸相關外掛(你可能也想知道)

  • HUSKY – Products Filter Professional for WooCommerce 》HUSKY – Products Filter Professional for WooCommerce(前名為WOOF)是一款針對WooCommerce的產品搜尋外掛程式,它允許你的網站客戶通過類別、屬性、...。
  • Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
  • Allow HTML in Category Descriptions 》當您在類別描述文本區添加文字並保存類別時,WordPress會運行內容過濾器,剝除除最基本格式標籤以外的所有內容。, 這個外掛程式可以禁用具有必要權限的角色的...。
  • Category Ajax Filter 》支援 Elementor Builder, 不用重新載入網頁,即可按類別篩選文章/自訂文章類型中的文章。在前端選擇特定的分類和分類名詞。使用預置的多種版面和 Ajax 請求來...。
  • Jetpack Search 》Jetpack Search 是一款功能強大且可自定義的外掛,可幫助訪問者在需要時立即找到正確的內容。, Jetpack Search 是一款易於使用的 WordPress 搜尋外掛,可增強...。
  • WooCommerce Filter Orders by Product 》曾經想要按特定產品篩選訂單頁面結果嗎?現在有了這個外掛,就能做到!, 安裝此外掛後,在 WooCommerce 訂單畫面中會出現一個新的篩選下拉式清單。此下拉式清...。
  • Advanced Post Manager 》這是一個針對開發者所設計的工具,可以透過添加 metadata、taxonomy 等資訊來協助加強自訂文章類型的列表功能。此外,也提供直觀的介面讓您可以添加及儲存複...。
  • WP Ultimate Post Grid 》使用 WP Ultimate Post Grid 可以建立帖子、頁面或任何自訂文章類型的回應式網格。可以選擇性為與這些文章相關聯的任何分類,添加等離子過濾器。, , , 查看這...。
  • WordPress Meta Data and Taxonomies Filter (MDTF) 》WordPress Meta Data Filter & Taxonomies Filter(MDTF)是一個 WordPress 的篩選外掛程式,可以讓您的網站內容通過資料的元欄位和稅務分類項進行篩選和...。
  • Simply Show Hooks 》迄今為止,主題和外掛開發人員尋找用於 add_action() 和 add_filter() 函式的接口位置方法是搜尋WordPress代碼庫或在Codex中找到接口的參考。, Simply Show H...。
  • Random Post Plugin – Redirect URL to Post 》重定向您的訪客到:, , 隨機文章, 您最新的文章, 您最舊的文章, 前一篇或下一篇文章, 或一組條件的組合,例如最新的10篇文章中的隨機文章,至少3個月前的最新...。
  • Filter & Grids 》使用 AJAX 篩選自定義分類 / 分類標籤來篩選文章或自定義文章類型,無需重新載入頁面,並支持不同的分頁類型。這款外掛允許解決顯示網站頁面上的文章的各種任...。
  • Filter Page by Template 》如果您的WordPress網站有數百個頁面,並且主題有多個頁面模板,有時您想查看使用特定模板的頁面。但是,在WordPress管理員中,預設沒有搜索帖子或頁面與模板...。
  • Beautiful taxonomy filters 》Beautiful Taxonomy Filters 是一款易於使用且外觀優美的 WordPress 外掛程式,可讓您為文章類型提供過濾功能,同時能根據自訂分類、標籤等加入過濾。此外,...。
  • WOOF by Category 》WOOF by Category 是一個 WooCommerce 商品篩選器(WOOF)擴充外掛,允許使用者在不同的商品分類中設置不同的 WOOF 篩選器。, 外掛具有後台選項頁面,可設置...。

文章
Filter
Mastodon