Thread Starter
wpmd19
(@wpmd19)
Update: moving this to a plugin, wrapping it in a function and attaching it to an init hook resolved the errors.
Thread Starter
wpmd19
(@wpmd19)
@sebastienserre – you are suggesting that I init the function in functions.php with a hook and then call this from the file mentioned in my original post? Maybe with a cron job to regularly call the function and insert new tables as posts / check for updates to the existing MySQL data?