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

首頁外掛目錄 › WP Remote Site Search
WordPress 外掛 WP Remote Site Search 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(1 則評價)
83 天前
最後更新
問題解決
WordPress 4.4+ v1.0.7 上架:2016-12-26

內容簡介

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 = "<button> Get In Touch!</button>"

在顯示所有結果後附加 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="<button>Get In Touch!</button>"]

鳴謝

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Remote Site Search」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon