plugin-icon

WP Remote Site Search

使用 WP REST API 搜尋任何 WordPress 網站的資料。
評價
5/5
版本
1.0.6
活躍安裝總數
40
最近更新:
Jul 11, 2024
WP Remote Site Search

WP Remote Site Search 是一款使用 WP REST API 傳回任何 WordPress 網站資料的搜尋外掛。

基本使用方式

啟用 WP Remote Site Search 外掛,然後新增短代碼 [wp_remote_site_search] 至頁面或任何可以顯示的位置。

選項

以下是 WP Remote Site Search 目前可用的短代碼清單。

1. 設定搜尋目標遠端網站網址:remote_url="https://example.com"

URL from where you want to fetch the information The remote site should have WordPress 4.7 or higher or Rest API (v2) plugin installed to get the search results.

2. 搜尋方塊標題:title="搜尋常見問題集"

Title for the search box

3. 要進行搜尋的指定分類:category_id="1,2"

You can also pass "category_id1,category_id2" to search multiple posts from multiple categories.

4. 是否搜尋指定分類的子分類:sub_categories="true"

You can also get all results from categories (category_id1, category_id2) and their respective subcategories by setting sub_categories="true".

5. 搜尋框內的預留位置文字:placeholder="請輸入搜尋關鍵字"

The text displayed in the search box placeholder. Default is "Search...".

6. 要搜尋的內容類型代稱:type="books"

Default type is posts, You can add custom post type also.

7. 搜尋結果預設顯示數量:max_results="50"

Total Number of results you want to display. (default max_results is 30)

8. 在搜尋結果下方顯示 HTML 格式內容:html_input="<button>保持聯絡</button>"

Append html after all results get displyed.

完整短代碼範例:

[wp_remote_site_search remote_url="https://example.com" category_id="1,2" sub_categories="true" type="books" title="How can we help?" placeholder="Have a question? Enter a search term." max_results="30" html_input="<button>Get In Touch!</button>"]

致謝名單

WP Live Search 授權方式:GNU GPL 第 2 版或更新版本 外掛說明頁

免費使用Business方案
目前已測試版本
WordPress 6.6.4
此外掛程式已可供下載,並可用於你 系統。