• Resolved jayyogvihalkrupa

    (@jayyogvihalkrupa)


    Hello Team,

    Have used one click import plugin.
    On demo server category ID is Construction [ ID : 14 ]
    After import using one click import plugin data is imported successfully. But category ID is Construction [ ID : 16 ] generated different.

    Due to mismatch of category ID,Category is not checked on checkbox on Divi Theme Blog Module.

    Please help me.
    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    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!

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    Hello Capuderg,

    Thank you for reply.
    But Divi Blog Module work base on ID.See attached link

    https://prnt.sc/iq7uz6

    Plugin Author Gregor Capuder

    (@capuderg)

    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!

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    Hello Capuderg,

    Thank you for reply.

    Which hook and function need to used for add category.

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    add_action( ‘pt-ocdi/before_content_import’, ‘ocdi_before_content_import’ );

    This one correct?

    Plugin Author Gregor Capuder

    (@capuderg)

    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!

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    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

    Plugin Author Gregor Capuder

    (@capuderg)

    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!

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    Hello Capuderg

    Post id is same before and after import ID 2706

    Thread Starter jayyogvihalkrupa

    (@jayyogvihalkrupa)

    Also after import theme customize file dat not imported correctly

    Plugin Author Gregor Capuder

    (@capuderg)

    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://www.ads-software.com/plugins/customizer-export-import/

    Take care!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Before Import and After Import Categegory ID is different’ is closed to new replies.