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?
- if plugin is active? check if plugin is enabled or not?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Saving Plugin settings to the database
- Change destination author link
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- New Plugin: Post update pushes a copy as a revision
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Display a text message if the field is not found and not if found
- Add get_option to jquery
- Scope for PHP Variables Assigned in functions.php or a plugin
- Add a plugin before main container
- Executing my function once on a specific time
- Bootstrap Drop Down menu is not working
- wordpress plugin is not activating from widget
- How to access data in wordpress database externally using php
- wordpress site | All-in-one-cufon IE Issue
- Override Plugin Script Fucnction in WordPress
- Replacing a plugin function with a custom renamed function doesn’t work
- How to call WordPress function other files
- Conditional attributes and logic per product category
- WP Query. Is there a maximum size?
- Using color picker in plugin, does input attribute order matter?
- Using window.onload with Ubermenu
- WordPress get_avatar function not correct working
- What is @Action in WordPress?
- How to include this jQuery File in wordpress?
- Check if variable is set in filter
- execute function after one completed
- wordpress add_action() issue in ajax call
- Adding media upload button to User Profile page (following a tutorial)
- Integrating boxtal PHP library into a custom WordPress Plugin
- I changed .live() to .on() but change is not reflected on the server
- wp_enqueue_scripts
- 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
- 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
- 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
- Adding a Tag Parameter / Filter to My Shortcode
- Call javascript functions from each page
- How to add custom function to pluggable.php
- sliding/fading header plugin or approach suggestion
- WordPress jQuery Post – Amending Variable Value Within Function Command
- WordPress Custom Hook with Class method
- 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
- Post source link plugin – small modification
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- Cannot pass value variable to WP AJAX functions
- How to get a specific string from a url
- How to create algorithm for ordering posts in WordPress?
- update_post_meta is not working for me when I use e.preventDefault for update button
- 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
- Is admin section completely customizable in terms of styling?
- Return function results within shortcode
- How to make the first letter of a post title uppercase, in a plugin?
- Soflyy WP All Import Custom File Download Issue
- 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
- Help with customising love it plugin (use within foreach)
- WordPress environment not loading properly
- How to echo a plugin’s function into a template?
- How to replace native comment_count with Comments Evolved aggregate count
- It possible to implement an adhoc php web application with wordpress?
- Cannot access variables within a widget
- Is there any wordpress function to update a random post every 10 minutes?
- Calling an custom field from theme option at the frontend
- What is the process for reimplementing a back up WordPress?
- WordPress function to add text
- Saving an array to get_options
- Contact Form 7: custom validation [closed]
- date function not correctly returning date
- Doing action based on input from options menu
- Showing author box on post detail page
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- Requires PHP version 5.3.0
- wordpress jquery is not defined because the head tag is empty
- PHP if url extension action=discussion condition use [closed]
- cURL External API request displays content above other content on page
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Option value not getting updated until page refresh in WordPress
- WordPress Convert queries to slashes using function.php
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)