I am importing a zip file with xml in it every day to update my properties. Now I am creating a new website with almost the same import. But I need some custom fixes to get it right changed to this theme,
So I need a WPallimport/xpath expert..
I have couple problems:
- GPS coorditnatos in custom posts need to be generated by adress
- Images are attached to library post but not visible on frontpage
- backend data is not visible but they do appear on frontend
For the above issues I have a importfix script made for a different website.
Also that importfix file needs to be launched after the wpallimport is done. Somewhere I read that this is possible with [url removed, login to view]
See solutions from wpallimport dev below
Here are answers to your questions:
>> Is it possible to start a script ([url removed, login to view]) after a import is finished (it will search for gps coordinates based on adress that is imported)
You may want to use the hook 'pmxi_saved_post' for such sort of post import processing. More details about WP All Import action reference are available here- [url removed, login to view]
>> Images attached to the post are correctly imported but not shown (theme option uses a different photo upload. how to fix that?)
WP All Import imports images into standard WordPress Gallery. To make the import compatible with your theme, the first step is to figure out what format you need the data in. To do that you can read the docs for the plugin, ask the developers, or just manually make a new record with the plugin and then take a peek under the hood to see what the plugin is doing. If the theme just uses standard custom fields to store images then it should be pretty similar to importing into Yoast WordPress SEO, which you can read about here: [url removed, login to view]
If it's more complicated than that, you'll probably need to use our API: [url removed, login to view]
>> Frontend data is visible but in the backend it is not
What data are you referring to that is not visible in the backend?
>> I want to import a zipfile from [url removed, login to view] - allowed to download once per 24 hours.
WP All Import faces an issue downloading such files that have download restrictions. One of our other customer also faced the exact same issue. The workaround that I would suggest is that you create a script that fetches this file and saves it on your server. Call this script once a day using cron. WP All Import can then simply use the copy of file on your server rather than directly attempting a download from the original source.
Hope this helps!