Add option to map imported records by slug
S
Scott Anderson
Currently you can match existing records by title, content, a custom field, or ID. Why not the slug (post_name)? I'm migrating data between two versions of a site and the titles are changing (and the IDs obviously are not the same), but I need the slugs to match, so that would be a perfect field to key the data on.
Trey Mills
Thank you for the suggestion, Scott Anderson!
The current workaround for this situation would be to pass the slug to a custom PHP function (see https://www.wpallimport.com/documentation/inline-php/) in the "ID" matching field. The function can find the post by slug, then return its ID to WP All import for matching purposes.