I’m currently building a weather website for my university dissertation and I’m having some trouble with post content. I’m currently using a php file to process an xml file uploaded by a weather station. I’ve checked the php code and it’s passing all the data to the wp_insert function and I’m also passing all the needed variables in the correct format however most of the data is being cut off for some reason. Any suggestions?
Here’s the php file code: