How to get custom data from wordpress RSS with SimplePie How to get custom data from wordpress RSS with SimplePie wordpress wordpress

How to get custom data from wordpress RSS with SimplePie


You should use the get_item_tags() function and use blank for the required namespace.

For MY_IMAGE_FROM_RSS use $item->get_item_tags('','post-thumbnail')[0]['child']['']['url'][0]['data'] and for MY_PRICE_FROM_RSS use $item->get_item_tags('','price')[0]['data']