SpikeSpade
Forum Replies Created
-
Hey,
I haven’t fixed it entirely, but I made an import which can import everything for the first time. (running it a second time, made duplicates, since I didn’t check on existing events)
I could send you my script if you give me your email.
I printed the $EM_Event object right before saving and just rebuild that one.
After the $EM_Event->save(), I had to set a could of tem_relationsships with custom queries
The problem in the given topic is showing the categories at the frontend. I’m having troubles getting categories linked in the database.
The $EM_Event object only has a getCategories() function, I’m looking for a setCategories() function equivilant, to be able to add categories to an $EM_Event using PHP. (since it’s an import, I obviously can’t use the edit page)
Hey courier_wp,
I’m trying to do the same, but I’m having troubles filling the $EM_Event object correctly to be able to save.
Could you share your remote php script? Then I might be able to use it to make my CSV import
Nope, can’t say I do.
I’m trying to see if I can build an import from CSV myself.
My first idea was build an array, place this in $_POST and $_REQUEST.
Then execute $EM_Event->get_post() to fill the object and then execute $EM_Event->save()However I ofcourse don’t have the required post_ids etc.
Do you have a pointer on what way is best to get the $EM_Event filled?