how do I generate instances of a widget at runtime, based on data from an API #19028
Bimblebounce
announced in
Developers Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've spent several hours scouring the web looking for answers but I can't seem to find an answer, or even better an example.
On an elementor built page, using a PHP widget, I have accessed an API and pulled down the data (job vacancies) and put them into an array.
I want to traverse the array and display a flipbox widget (containing text details) for each entry in the array. BUT I don't know how to add an element to a page at runtime.
I came across 'PHP hooks' whilst looking for answers. Is this the direction I should be looking? Is there an easier way?
Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions