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.

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

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

Title for the search box

    • title="How can we help?"

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

    • category_id="1,2"

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

    • sub_categories="true"

The text displayed in the search box placeholder. Default is “Search…”.

    • placeholder="Enter a search term."

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

    • type = "books"

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

    • max_results="50"

Append html after all results get displyed.

    • html_input = "<button> Get In Touch!</button>"


Example: