Pull post data via ajax in wordpress