I can confirm that the imported post will get a new unique ID if (and only if) there already is an existing/conflicting ID in the target database.
Given a post to be imported with an ID of 7579
(represented in the WXR export file as <wp:post_id>7579</wp:post_id>
) and an existing post with that exact same ID already in the target database, the generated ID for the imported post was 7583
.
(As far why 7583
? I would have thought auto increment but 7579
was an existing post, 7580
a revision of that post and 7581
a draft of some sort. So not exactly sure why 7582
was skipped.)
Related Posts:
- Why is my database import losing text widget data?
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- What’s the database relationship between a post and its attachments
- Export WP database for import using WP-CLI on Vagrant Box
- When importing database, it shows error
- Is a direct or import approach safer for migration into WordPress?
- MySQL Syntax Error upon restoring database from backup [closed]
- Import live site to local setup without access to live site
- Error establishing a database connection; After importing DB & Theme
- WordPress database import: Row size too large
- Export / import WordPress database
- Merging two databases without borking it
- Importing CSV into database table not working?
- Import users from old WP site to new one
- Connection refused on locahost after importing database?
- Importing Direct to DB – GUID Question
- Best practice to import user base (subscribers) from one website to another?
- Importer fails to import every post
- WordPress database products structure
- Is it good practice to import/export a blog to test a redesign?
- How can I query the db to access current post information?
- Featured image from custom to WordPress database
- Get id from database
- I broke database after reuploading local version – what exactly happened? Database error
- Using class id from array for query
- Create hundreds of users with just ID in phpMyAdmin
- Importing Concrete5 content to WordPress
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Why WordPress choose data serialization over json_encode?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- Reset Post IDs to less than 64bit integer
- how can get database name in wordpress?
- Does WordPress use the InnoDB engine for MySQL by default?
- Best way to import users, post and categories from an external database
- Performance tips for a large user base [closed]
- Inserting Post Meta From SQL
- Saving Metadata from the Gutenberg Editor Sidebar to the Database
- Migrate a Non WordPress database to wordpress [closed]
- Moving an entire wordpress site from one domain to a new domain and database
- Copy customizer options to child theme
- Custom DB_COLLATE (collation) value not working on fresh install?
- What causes the “max_user_connections” warning on WordPress frontend?
- How to use user table of a different database for WordPress users?
- Subscribers to posts
- $wpdb->update has finished saving trigger?
- Getting all the users who have author privilege
- For WordPress is there content in the database which I can safely ignore?
- How can I UN-orphan media files?
- WordPress choose wrong database
- Sync user meta data to a second database
- Is it safe to delete unnecessary user metadata?
- WordPress Relational Database
- wp-cli search is returning ‘search’ is not a registered subcommand of ‘db’
- Switching Databases in LocalHost
- wp_insert_post causing There was an error connecting to the database: Access denied for user ‘root’@’localhost’ (using password: NO)
- How to update the values when the featured image has changed?
- Does WordPress $wpdb functions wait when table is locked?
- Unable to set a default serialized array using dbdelta()
- Importing 10 Years of Media into the WP Database
- 2 WordPress sites with 2 databases but sharing the same users
- Insert Query not working in the form
- connecting to DB from custom php file
- Make changes of wp-db.php file persistent against updates
- Change the default data installed when setting up WordPress
- Clear Terms from Taxonomy for Specific Post IDs?
- WordPress security [closed]
- How to split the WordPress database?
- $wpdb->get_var – What value is returned when zero records are found?
- SymmetricDS in dev + prod workflow?
- Fixing YARPP plugin FULLTEXT MySQL indexing
- Advantages of dbDelta
- Only allow user to access a link once a year, based on their joining date
- Error establishing a database connection in wordpress site , website not opening
- wpdb Insert unknown post data dynamic foreach loop
- How do I use a database in a custom theme?
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- Migrating meta_key and meta_value from old theme to new one
- How do you enable scripts on a WordPress installation in Softaculous?
- How to rerieve comments and their replies from DB
- Inserting data with Geometry field
- I Want a More Concice Form of Data than an Array
- Export only a part of the database for migration
- Duplicate database to roll back theme & content changes
- database error WordPress move from one hosting to other
- Select data from foreach loop and send it to wordpress database
- Error establishing database connection error during first WordPress run
- Same DB for live and dev versions
- update multiple user meta field based on another meta field
- execute custom function on database connection error
- version control for wordpress? (wordpress folder and database at same time)
- not saving post in wp_post wordpress database table
- Install WordPress with SQL database
- How to back-up a database on IIS
- Creating Job Tickets
- Best db table structure for users with many records
- Where are database files of a WordPress website?
- Set a minimal number for next user_id
- Query a meta key using an array of values where the database value is a string