Skip to main content

New answers tagged

0 votes
Accepted

fetch from an external api call and display results in page

Guide to displaying data from an external API in WordPress using a shortcode: 1. Create a Shortcode in functions.php Create a shortcode in your functions.php file that outputs a container for the ...
mukto90's user avatar
  • 1,609
0 votes

fetch from an external api call and display results in page

You can use for example wp_remote_get(), which is part of the WordPress' HTTP API, to call the external API. After receiving the remote response you can pluck the body data from it with ...
Antti Koskinen's user avatar

Top 50 recent answers are included