Hi everyone, I'm wondering if anyone knows how I can include an external api feed into wordpress. Something that is not youtube, Facebook, linkedin etc. Any assistance on doing this would be great. The api url is the same always, I just want the result of the query on my wordpress site. Kind regards Sycrid
You probably need a cron job to call the feed at set intervals and save the contents in a local table. It'd be reasonably easy to write a plugin to do that, then your plugin just needs to make the info available to a page - I'd use a shortcode for that. ref: https://www.php.net/manual/en/function.file-get-contents.php https://www.php.net/manual/en/intro.curl.php https://www.google.com/search?q=wordpress+plugin+template https://en.support.wordpress.com/shortcodes/