We have an existing website which was custom coded.
We have story table which needs to be imported as posts into a wordpress website.
These stories have images - main image and thumbnail they also needs to be copied to the relevant folders.
The related categories also needs to be created.
This needs to be done using wprdpress functions like wp_insert_post etc.