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.
Creative Responsive Portfolio Site Category: CSS, CSS3, Frontend Development, HTML, HTML5, JavaScript, Web Design, Web Development Budget: ₹12500 - ₹37500 INR
06-Nov-2025 05:04 GMT
Minimalist Interior Line Art Logo Category: Adobe Illustrator, Photoshop, Branding, Graphic Design, Illustration, Logo Design, Vector Design Budget: ₹600 - ₹1500 INR
06-Nov-2025 05:03 GMT
Expert in signal gbpjpy Category: Algorithm, API Development, C, Programming, C++, Metatrader, MQL5, Software Architecture Budget: $10 - $30 USD
06-Nov-2025 05:02 GMT
Modern Professional Wordmark Logo Design Category: Adobe Creative Cloud, Adobe Illustrator, Graphic Design, Illustration, Logo Design, Photoshop, Typography, Vector Design Budget: ₹750 - ₹1250 INR
06-Nov-2025 05:01 GMT
Triplex Home Floor Plan Revisions Category: AutoCAD, Building Architecture, Building Design, Building Information Modeling, CAD / CAM, Construction Management, Drafting, Interior Design Budget: ₹600 - ₹1500 INR
06-Nov-2025 05:00 GMT
Social Media Identity Tracing -- 2 Category: Data Analysis, Data Mining, Data Protection, Data Scraping, Digital Forensics, Legal Research, Risk Assessment, Web Scraping Budget: ₹600 - ₹1500 INR
06-Nov-2025 04:57 GMT
Strikingly Pages & PDF Links Category: CSS, HTML, PHP, Web Application, Web Design, Web Development, Website Management, Website Optimization Budget: $30 - $250 USD
Windows SSH Text File Uploader Category: Automation, Linux, Powershell, Scripting, Shell Script, System Administration, Windows Server Budget: $25 - $50 USD
Virginia Fuel-Retail Masterlist Category: Data Analysis, Data Cleansing, Data Collection, Data Entry, Data Management, Data Processing, Excel, Web Search Budget: $30 - $250 USD
06-Nov-2025 04:55 GMT
Shopify Store for Dual Products Category: AI Chatbot, ECommerce, HTML, Mobile App Development, Shopify, Shopify Development, Shopify Templates, Web Development Budget: £1500 - £3000 GBP
06-Nov-2025 04:53 GMT
Edit Gaming Let’s Play Category: Adobe Premiere Pro, After Effects, DaVinci Resolve, Video Editing, Video Post Editing, Video Production, Video Services, YouTube Budget: ₹600 - ₹1500 INR