Issues with image imports and taxonomies
-
I’m helping a colleague with a problem he’s come across while building a site and importing data into a new site shell. Originally, we were able to import approx 500 records of one custom post type, including images.
We then imported a further 1000 records into a second cpt. At a certain point, we have no idea when, every single cpt of the original batch was deleted. Okay, we assume that somehow we missed an option, but hard to see how when we’re importing into a different cpt.
So, we imported the 1000 files, then realised that the images hadn’t arrived. My colleague had exactly the same issue previously so we sat down to work out what the hell was going on. The datafield showed that the images were stored in a /domain/import/ folder ready to be imported.
After messing about for ages trying to work out if we should be importing ‘images’ or importing the data into the relevant ACF image field, we didn’t have a lot of joy. Finally, we decided to import the images into any field that appeared to relate to the image.
So, of 1000 files, approximately 100 (from a visual check and not counting) appeared. In the import records were endless warnings saying that xyz.jpg was not a proper image file and couldn’t be imported or used as a featured image. These images are all jpg and all made from the same template.
We tried again, and found that second time around, probably around 150 images had been imported (they are all about 40kb each). It seems totally random and we’ve spent the whole day trying to import them. What on earth are we supposed to do in this case?
Secondly, if a post has more than one taxonomy and these taxonomies have more than one value, and you are using ACF to set the taxonomy values for each post, these are displayed as a dropdown list from which I can select ONE value per taxonomy for EVERY single post, or NONE. We have one taxonomy with 30 or so values, another with 13. It is impossible to import these values. The only way is to go into excel, break up the import file into something like 30-40 different files which would allow the selection of single values for all posts in the batch, then import them batch by batch. Where there are less than 8 posts with common taxonomy pairings it’s actually quicker to import them without values and manually enter them afterwards. I’ve never come across an import tool that requires you to manually add hundreds of values after import. We have some 20,000 posts and values to deal with….
- The topic ‘Issues with image imports and taxonomies’ is closed to new replies.