[WordPress] 外掛分享: WP Remote Site Search

WordPress 外掛 WP Remote Site Search 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Remote Site Search」是 2016-12-26 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2024-07-11,距離現在已有 297 天。
  • 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pratikchaskar |

外掛標籤

live search | multisite search | remote site search |

內容簡介

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

基本使用

啟用 WP Remote Site Search 外掛
在網頁中加入 shortcode [wp_remote_site_search]

選項

下列是 WP Remote Site Search 外掛目前可用的 shortcode 列表。

1.remote_url="https://example.com"

你希望從中擷取資料的 URL
遠端網站必須安裝 WordPress 4.7 或更高版本或 Rest API (v2) 外掛,才能取得搜尋結果。

2.title="How can we help?"

搜尋框的標題

3.category_id="1,2"

你也可以傳遞「category_id1,category_id2」以搜尋多個類別的多個文章。

4.sub_categories="true"

透過設定 sub_categories="true",你也可以從類別 (category_id1、category_id2) 和它們的子類別中獲取所有結果。

5.placeholder="Enter a search term."

在搜尋框占位符中顯示的文字。預設為「Search...」。

6.type = "books"

預設型別為文章,
你也可以添加自訂文章型別。

7.max_results="50"

你想要顯示的總共結果數量。
(預設的最大結果數量是 30)

8.html_input = ""

在顯示所有結果後附加 HTML。

範例:

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

鳴謝

WP Live Search
授權:GNU GPL、版本 2 (或更新版本)
鳴謝 https://wordpress.org/plugins/wp-search-live/

原文外掛簡介

WP Remote Site Search is a search plugin for WordPress that returns any WordPress site’s data using WP REST API.
Basic Usage
Activate the WP Remote Site Search plugin
Add the shortcode [wp_remote_site_search] to a page or something
Options
Here’s a list of shortcodes currently available in the WP Remote Site Search plugin.
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="How can we help?"
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="Enter a search term."
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_input = ""
Append html after all results get displyed.
Example:
[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=""]

Credits
WP Live Search
Licenses: GNU GPL, Version 2 (or later)
Credits https://wordpress.org/plugins/wp-search-live/

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | trunk |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon