adding post to the correct directory