开发者 |
brainstormforce
pratikchaskar |
---|---|
更新时间 | 2024年7月11日 15:10 |
捐献地址: | 去捐款 |
PHP版本: | 4.4 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
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 = "<button> Get In Touch!</button>"
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="<button>Get In Touch!</button>"]
wp-remote-site-search.zip
from your computer