WordPress itself can communicate with external API’s through wp_remote_get
and wp_remote_post
. See the codex.
In your case, you could create a page template called page-search.php (keep in mind that search.php is reserved for the internal WordPress search functionality, so you would define it as a template, and select it when creating the page), and run your wp_remote_get
code in that template.
There are of course other ways of doing it, like utilizing Javascript, with or without any of its available libraries.
The fetch API makes it quite easy to do it with Javascript.
Related Posts:
- JQuery prepend a function
- How to convert Currency from USD to other IP Based currency in Php function
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Plugin update error message
- Keep one user logged for a year?
- How to build an API as a plugin
- Using window.onload with Ubermenu
- WordPress get_avatar function not correct working
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Load Javascript from Plugin in One Page Only?
- How to include this jQuery File in wordpress?
- Plugin is a widget, but I want to call it in the head, can I?
- Check if variable is set in filter
- Checking the count within a foreach loop
- execute function after one completed
- wordpress add_action() issue in ajax call
- Adding media upload button to User Profile page (following a tutorial)
- Why can’t I call a (member) function from within a foreach?
- Is there a function to list all uploaded images? How can I add one?
- Are there action hooks for comments?
- Help with WP Business Directory Manager Plugin?
- Integrating boxtal PHP library into a custom WordPress Plugin
- I changed .live() to .on() but change is not reflected on the server
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- wp_enqueue_scripts
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- How to get specific string/value from an array? php [closed]
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Plugin onclick button activate other plugin
- WordPress Stock Update Programatically
- How can I fetch data from another website to my wordpress website with mysql database
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Save user total active time after login in wordpress [closed]
- Send email with list of active plugins upon activation/deactivation
- Using custom fields for image alt and title
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- How to translate wordpress error message
- All custom widgets are not showing in widget area at the same time
- Add the_post_thumbnail_url to a shortcode in function.php
- same user role or copy the user role to be same as the other role
- Custom meta box with jQuery.sortable custom post type list
- Different registration form for different roles
- Adding a Tag Parameter / Filter to My Shortcode
- More gentle way to hook WordPress custom url
- Call javascript functions from each page
- How to add custom function to pluggable.php
- Can you echo PHP code from a variable?
- sliding/fading header plugin or approach suggestion
- Checkbox show / hide output result
- Custom Logo Link WordPress
- How do I reinit WordPress plugins dynamically using jS?
- how to validate input field in wordpress generated with wpform plugin
- How do I display PHP file contents on front end of WordPress?
- WordPress jQuery Post – Amending Variable Value Within Function Command
- add_rewrite_rule to load different page, without changing URL in browser
- implement custom roles in custom plugin
- WordPress Custom Hook with Class method
- How to get current cart values using WC_Shortcodes?
- Attempting to list all product categories and the price range of all products within them
- Push Contact form 7 variable to front end after submission
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cookie value changes back to previous value after changing
- Creating an array from form inputs before it is posted to the options database
- WP Ajax DB issues
- Post source link plugin – small modification
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Share my WordPress plugin for updating how?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Cannot pass value variable to WP AJAX functions
- adding dynamic/multiple slug values in ‘option_none_value’
- How to get a specific string from a url
- How to create algorithm for ordering posts in WordPress?
- Submitting form to PHP
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- update_post_meta is not working for me when I use e.preventDefault for update button
- Get Shortcode output to database for static post_content
- working code, not working – Plugin Dev
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Block plugin update possibilities (but not by hiding notifications)
- post id or permalink auto-incrementing number and reset everyday
- Change custom rewrite rule when permalink is updated/changed
- Is admin section completely customizable in terms of styling?
- Return function results within shortcode
- Configuring default woo commerce login with modal popup
- How to make the first letter of a post title uppercase, in a plugin?
- Compare Ajax Data Results
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Soflyy WP All Import Custom File Download Issue
- register_activation_hook doesn’t fire at all
- Update (a function) post’s featured image as soon as $image_url changes
- Migrating custom php we wrote from functions.php into a site-specific plugin
- Nested DIV’s across functions in PHP, do not seem to work