I want to retrieve search results from a search appliance that gives results in JSON format. Interacting with the form below takes the user to a page of JSON data. Instead, I want to take the search.json content, parse it, and display the results on our WordPress site.
<form method="get" action="/s/search.json">
<input type="hidden" name="collection" value="our-stuff">
<input class="search-input" value="<?php echo get_search_query(); ?>" />
</form>
I tried editing the action parameter to include the wp_remote_get function like so action=<?php wp_remote_get("/s/search.json";?>
but I get a php parsing error.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745435240a4627578.html
评论列表(0条)