wrote function that contains the API call to wordpress. wrote function that takes that api call and iterates through the resonse and builds variables to pass to the collection