I had initially asked a question based on my code (which has since been removed), I need some help/guidance in creating a plugin.
Scenario: I have created a custom post type (CPT), now I need to insert values into the CPT from a database table external to the wp environment. This routine needs to run once every hour, no of rows can range from 50 - 500.
What is my best course of action?
Side question: Do I separate my CPT code from the insert routine code?