Interacting with API's

Posted in: Newspaper
Post count: 15

How can I interact with an API on my pages? Specifically I need to make a GET call and receive back a JSON object and then I need to parse that and display it correctly. It’s a combination of php/html code. I don’t see a way to do it in the tagdiv composer. Is it possible?

Post count: 27744

Hello,

Try to use the element called “Column text” or “Text with title”. “Column text” and “text with title” elements have a button called “edit content” and if you click on that button, the WP Editor will open and you can add some text/code/shortcode in the text area.
https://www.screencast.com/t/N6rPZvAa The shortcode/code is automatically saved.

Thank you!

Post count: 15

Does it work with PHP as well? I’m also trying to add a custom field to a post which would be a URL of a favicon. I want that favicon then displayed on the post. Here’s what I’m trying right now: Column Text -> Edit Content:
Then pasting my PHP code there. It won’t let me paste it here on this forum. Keeps giving me an error even when wrapped in code tags.

Post count: 27744

Hello,

To add the custom field, you can use the element custom field -> https://i.imgur.com/fYbgfoi.png

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.