Calling a GET-API with Wordpress with the use of a PHP to Shortcode Plugin
- Download the "Insert PHP Code Snippet"-Plugin and install and activate it
- Copy and paste the code of the PHP-file in the repo
- Use the shortcode on any post or page
In this tutorial file I use a public API
I filtered the response to get only the count object and all the API names which will be printed in a loop.
The result looks like this: