Hey Myriam. You may find some materials that could be of value in the template tags php file, but what might be of more value to you could be digging into our CSV-based importer plugin. It doesn’t serve the exact purpose of what you’re going for here…but at least it could let you see how the import operates and may be of some value on that end. That’s probably the best suggestion I could offer at this point.
If you’re interested, shoot me an email (pro /a/ tri.be) and I’ll hook you up with the code. Cheers!