removed debugging code; changed URL to WP API --KW