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.
Classic Business Card Design Category: Adobe Creative Cloud, Adobe Illustrator, Adobe InDesign, Business Card Design, Graphic Design, Illustration, Logo Design, Print Design Budget: $250 - $750 USD
04-Apr-2026 15:58 GMT
Geospatial Analysis Website & API Category: API Development, Data Analysis, Data Visualization, FastAPI, Frontend Development, Geospatial, Node.js, Python, REST API, Web Development Budget: $250 - $750 CAD
04-Apr-2026 15:55 GMT
Minimalist Line Graphic T-Shirt Category: Graphic Design, Illustration, Photoshop, Photoshop Design, T Shirts Budget: $250 - $750 USD
Desain Logo Profesional Cepat -- 2 Category: Adobe Illustrator, Branding, Graphic Design, Logo Design, Photoshop, Vector Design Budget: $1500 - $3000 USD
04-Apr-2026 15:53 GMT
Company Valuation & CCD Feasibility Category: AI Consulting, AI Model Development, Business Analysis, Business Plans, Financial Analysis, Financial Consulting, Investment Banking, Market Research, Research Writing, Valuation & Appraisal Budget: ₹1500 - ₹12500 INR
04-Apr-2026 15:53 GMT
Client Acquisition Specialist Wanted Category: Business Development, Customer Service, Internet Marketing, Lead Generation, Leads, Sales, Sales Management, Sales Promotion, Social Media Marketing, Telemarketing Budget: ₹1500 - ₹12500 INR