First off, I’ve got it all worked out, but there might need to be some better error checking in the migration process.
I went to make changes to a site that had not been updated in a while, and saw the Attachments update. As the host does regular backups, I threw caution to the wind and proceeded, migrated the data and implemented the new code.
I had been using Attachments on regular Pages and on a custom post type called Articles. The Pages one, for the most part went fine, but I ran into a problem with the Articles one. First, it wasn’t clear about setting up a separate instance for Custom Post Types, though I figured that out.
Secondly, the migration process seemed to delete the content from the first four of my Articles out of a total of 53. Luckily there were autosaved revisions that I was able to restore from that were current enough.
I’m not 100% certain the missing content was Attachments fault, but I don’t have another explanation, so it might be worth a look.
A couple other point/questions:
Loop oddity. I have a loop with an Attachments
- list that had nested and <p> tags with classes. The oddity was that when pulling the “caption” value, the Attachments code seemed to also be dropping in it’s own <p></p> around all the “caption” values, but the last one.
I’m getting a WYSIWYG toolbar in the caption field. Is there a way to turn that off? Might be related to the loop issue?
Finally, the whole Attachments interface is even less compact than before, which makes re-ordering difficult. It’d be nice to have a way to easily collapse all the Attachment items down to their titles only or some other interface for re-ordering.
- The topic ‘Data Migration and Custom Post Types oddity and comments’ is closed to new replies.