Browsing index pages (2 articles)
↧
How to parse category term from Wordpress ATOM feed in PHP?
I have a standard ATOM feed from a Wordpress instance. In the feed, the following category items appear:<category scheme="http://alpha-s2new.simplescienceinc.com/blog" term="Blog" /><category...
View ArticleAnswer by i alarmed alien for How to parse category term from Wordpress ATOM...
term is an attribute, so you need to use getAttribute to get the data from it. For example:// $dom is the DOMDocument object holding the XML$cats = $dom->getElementsByTagName('category');foreach...
View Article
Browsing index pages (2 articles)