Support » Plugin: Widget Importer & Exporter » Category ID are not imported correctly in new installation

  • Resolved Shiva Poudel


    Hello Steven Gliebe,

    In one of my custom widget I used wp_dropdown_categories() form field and while saving it saves ID of the category and while exporting it does export ID only. In my theme One click demo Import strategy the category ID is not matching after import in new installation and I got to fix that problem. Can you provide support for that or custom action hook where I can do changes for the correct result with ease example.

    The hackathon is to get the ID of category from its title defined by our own custom array and update the ID of category Imported by this plugin in new installation. Think, If we can defined the category from our config array for that widget and replicate the result with correct category ID 😛


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven Gliebe


    Hi Shiva,

    I assume that is because ID’s often differ on separate installations. So, if you want to find and update by title then there are a couple actions that might help. wie_after_widget_import fires after each widget import and passes data for that widget. wie_after_import runs after all widgets are done importing.

    Would you need a different action?

    Thank you for your prompt reply Steven.

    Can you provide me some snippet to update category ID using those action?
    I tried a lot but couldn’t get any fruitful result. For example, can you please share a snippet using which I can modify the data of the specific widget’s category ID using those hooks?

    That would be really helpful.

    Thanks! 🙂

    Plugin Author Steven Gliebe


    I’m sorry, that’s beyond the scope of support for this plugin. The plugin simply imports what it exports so if you need some additional functionality for your custom widget then you may want to hire a developer to help you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category ID are not imported correctly in new installation’ is closed to new replies.