wordpress-importer
wordpress-importer copied to clipboard
Cannot import posts with identical post title
In WordPress I can have posts with identical post titles but when I use wordpress exporter + importer those posts fails to import.
This is caused by the check here: https://github.com/WordPress/wordpress-importer/blob/db1d694d94e404a01df2fd8dcabe5dafeb211948/src/class-wp-import.php#L625
The way around it is to used the filter wp_import_existing_post
.
https://core.trac.wordpress.org/ticket/33721