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.
Romantic Event Video Montage Category: After Effects, Film Editing, Film Production, Video Editing, Video Post Editing, Video Processing, Video Production, Video Services Budget: ₹600 - ₹1500 INR
21-Dec-2025 04:56 GMT
Adobe Content Creator for Social Media Category: Adobe Illustrator, Photoshop, Adobe Premiere Pro, After Effects, Animation, Canva, Content Creation, Corel Draw, Graphic Design Budget: $250 - $750 USD
21-Dec-2025 04:54 GMT
looking for YouTube short animator Category: 3D Animation, Animation, Video Editing, Video Services, YouTube, YouTube Video Editing Budget: $30 - $250 USD
21-Dec-2025 04:53 GMT
Enhance iOS ARKit LiDAR App Category: 3D Modelling, 3D Rendering, ARKit, IOS Development, IPad, IPhone, Mobile App Development, Objective C Budget: ₹400 - ₹750 INR
21-Dec-2025 04:53 GMT
Short Blog Article Needed Category: Article Writing, Blog Writing, Content Development, Content Writing, Copywriting, Creative Writing, Ghostwriting, SEO Writing Budget: $15 - $25 USD
PR distribution ONLY for a U.S.-based dating app ASAP! Category: Advertising, Copywriting, Digital Marketing, Email Marketing, Journalism, Media Relations, Press Releases, Public Relations, SEO, Social Media Marketing Budget: $25 - $45 USD