script to get resources from Wordpress