I am currently attempting to make a simple GET call on an external API and then to populate the page with the response, no matter I search I cannot seem to find a clear or understandable answer as how to do this or if it is even possible.


I have found an answer, however I feel that I should expand on what I wanted as I feel that Mark Kaplun was right. What I wanted to be able to do was make an external API call to GET a response from my own backend service (dreamfactory in this case). The issue that arose, largely due to my unfamiliarity with WordPress, was that I could not find a way to send off an api call. What it transpired the issue was that I attempted to make the api call inside the page and not inside the "Functions.php" page that I should of done, calling a short-code inside the page editor to activate it.

  • maybe you should start ny editing the question and explaining better what is it that you want to do Jul 26 '17 at 16:34
  • This answer of mine might be the one that you are looking for.
    – Jack Johansson
    Jul 26 '17 at 22:19

Mark is right, without knowing more, this is a hard question to answer. This is a general guide though (not written by me) that I've used for my projects in the past.


It should get you started and then if you have other questions, please let us know.

  • It turns out a general guide was what was needed, as explained in the edit I was using incorrect code styles in the wrong area. Jul 27 '17 at 9:57
  • Great news! Let me know if anything else comes up.
    – rudtek
    Jul 27 '17 at 14:56
  • 1
    Yoast page has been deleted
    – TonyG
    Sep 1 '20 at 5:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.