Hi @jayyogvihalkrupa,
that’s just how the WordPress import process works. It will generally generate different IDs, than the original (export) site.
That’s why it’s better to use category slugs for your custom options, widgets and plugins, because the slugs will stay the same (but the IDs will change).
There is nothing that can be done, except to hook into the after import hook and remedy this issue with custom code, if possible.
Take care!
Hello Capuderg,
Thank you for reply.
But Divi Blog Module work base on ID.See attached link
https://prnt.sc/iq7uz6
Hi,
then you would need to hook into the after import hook of our plugin and set the correct ID with custom code.
Take care!
Hello Capuderg,
Thank you for reply.
Which hook and function need to used for add category.
add_action( ‘pt-ocdi/before_content_import’, ‘ocdi_before_content_import’ );
This one correct?
Hi,
no, the action hook would be ‘pt-ocdi/after_import’ and I don’t know, what the code is to remedy your problem, so I can’t help you with the custom code you need to write.
Take care!
Hello Capuderg
Another issue is
Post meta data value not imported.
In XML it is displaying “ON”
<wp:postmeta>
<wp:meta_key><![CDATA[ghost_header_enable]]></wp:meta_key>
<wp:meta_value><![CDATA[on]]></wp:meta_value>
</wp:postmeta>
After import see attached link database “ghost_header_enable” value is blanked
https://prnt.sc/iry9x0
Hi,
are you sure you are looking at the correct post_id? We didn’t have any issues with importing post meta before, so I just want to be sure.
Take care!
Hello Capuderg
Post id is same before and after import ID 2706
Also after import theme customize file dat not imported correctly
Hi,
the post meta issue is strange, since other post meta looks OK in the picture. Is that true? Other post meta imports ok, just this checkbox is not imported OK?
The customizer importer will import the data from your import.dat file, so maybe there is something wrong with it? What kind of issue do you have with the customizer import. Did you try to import it with the original import/export plugin: https://wordpress.org/plugins/customizer-export-import/
Take care!