pulling in external JSON search results into WordPress

I want to retrieve search results from a search appliance that gives results in JSON format. Interacting with the form b

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

相关推荐

  • pulling in external JSON search results into WordPress

    I want to retrieve search results from a search appliance that gives results in JSON format. Interacting with the form b

    5小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信