added logic for importing data from xml to wordpress