I have an XML feed from an API that I've fed into a Wordpress site using the plugin WPGetAPI. I can see the items in the feed and can pull elements onto my webpage.
What I'd like to achieve is placing the contents from the XML feed into an array, and then be able to take certain values from each item to drop into HTML blocks, and also loop them as there's typically several items in the feed. At the moment, I can only print the values in the order they appear in the feed, like so:
TITLE IMAGE
Whereas the layout I'd like is:
IMAGE TITLE BUTTON
The button isn't in the XML feed, but I can code that in HTML and then ideally add the item URL behind it.
So is this possible with PHP? I need to reorder the elements as they're not correct, and I don't know PHP to be able to do this myself.
Additionally, I'd also like to understand how to only select items from particular categories in the XML, and limit the amount of items (max 2) when displaying them.
Ideally I would like to understand and learn how to do this myself, as I may not be able to grant outsider access to the Wordpress site.
Professional Animated YouTube Intro Category: 3D Animation, Adobe Premiere Pro, After Effects, Animation, Blender, Motion Graphics, Video Production, Video Services Budget: €30 - €250 EUR
Desain Konten Media Sosial Category: Adobe Illustrator, Photoshop, Content Creation, Graphic Design, Illustration, Logo Design, Social Media Marketing Budget: $15 - $25 USD
Married Couples Resource Blog Category: Article Writing, Blog Design, CMS, Content Writing, Copywriting, Ghostwriting, Graphic Design, SEO Budget: $250 - $750 USD
23-Nov-2025 22:54 GMT
WhatsApp Chat Admin Support Category: Customer Support, Data Entry, Data Management, Excel, Google Sheets, Indonesian Translator, Time Management, Typing, Virtual Assistant, Web Search Budget: $250 - $750 USD
Modern Residential Exterior 3D Renders Category: 3D Animation, 3D Architecture, 3D Design, 3D Graphic Design, 3D Modelling, 3D Rendering, 3D Visualization, 3ds Max Budget: $30 - $250 USD