Title: Does not import Elementor Select2 values
Last modified: February 19, 2022

---

# Does not import Elementor Select2 values

 *  [devframer](https://wordpress.org/support/users/devframer/)
 * (@devframer)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/)
 * Hi,
 * First of all, thanks so much for this fantastic plugin which works out of the
   box than any other import plugin out there.
 * I am building a theme based on Elementor page builder and included Advanced import
   via TGMPA. All the demo data has been imported successfully except the values
   set using a select2 settings. For example, if I create an custom extension that
   adds WooCommerce products and it has options for adding selected category or 
   selected IDs using the code
 *     ```
       $this->add_control(
       			'woo_featured_products_list',
       			[
       				'label' => esc_html__( 'Select Featured products', 'theme-name' ),
       				'type' => Controls_Manager::SELECT2,
       				'multiple' => true,
       				'options' => $this->woo_featured_products_list(),
       			]
       		);
       ```
   
 * After importing a demo, the set values aren’t imported and the section looks 
   empty.
 * Is there a solution to overcome this?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15382730)
 * Hello [@devframer](https://wordpress.org/support/users/devframer/) ,
 * I am assuming `woo_featured_products_list` as an [option](https://codex.wordpress.org/Database_Description#Table:_wp_options)
   and store array of post ids ( Product Ids).
 * Using hooks available on the plugin Advanced Import, I think you can solve it
   with the below code.
 *     ```
       add_filter( 'advanced_import_update_value_woo_featured_products_list', 'prefix_replace_post_ids', 10, 2 );
       function prefix_replace_post_ids( $value, $option ) {
       	$new_values = array();
       	foreach ( $value as $old_post_id ) {
       		$new_post_id  = advanced_import_admin()->imported_post_id( $old_post_id );
       		$new_values[] = $new_post_id;
       	}
       	return $new_values;
       }
       ```
   
 * Hook used : [‘advanced_import_update_value_’ . $option ](https://plugins.trac.wordpress.org/browser/advanced-import/trunk/includes/functions-advanced-import.php#L33)
 * Note: not tested.
 * Best Regards!
 *  Thread Starter [devframer](https://wordpress.org/support/users/devframer/)
 * (@devframer)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15451818)
 * Hi [@codersantosh](https://wordpress.org/support/users/codersantosh/)
 * Thanks for your reply and sorry for the late response!
 * But the above filter doesn’t update the IDs anyhow. The new IDs aren’t updating.
   Can you suggest any other way to update the IDs or could you tell me where these
   Elementor widgets values are saved in the database?
 *  Thread Starter [devframer](https://wordpress.org/support/users/devframer/)
 * (@devframer)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15451850)
 * Hi [@codersantosh](https://wordpress.org/support/users/codersantosh/) ,
 * FYI: The elementor elements data is stored in the post meta table with meta_key“
   _elementor_data”.
 * Is there any filter to update the IDs in the post meta table?
 * The `woo_featured_products_list` seems stored as serialized data inside all elements
   data of a page and the `woo_featured_products_list` like this
 *     ```
       [1] => Array
         (
             [id] => 94c43b8
             [elType] => widget
             [settings] => Array
                 (
                     [woo_featured_products_list] => Array
                         (
                             [0] => 12
                             [1] => 18
                             [2] => 24
                             [3] => 35
                             [4] => 39
                         )
   
                 )
   
               [elements] => Array
                   (
                   )
   
               [widgetType] => prefix_featured_products_widget
           )
       ```
   
 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15480627)
 * Hello [@devframer](https://wordpress.org/support/users/devframer/) ,
 * Thanks for the info, we are working on it and will update you as soon as possible.
 * Best Regards!
 *  Thread Starter [devframer](https://wordpress.org/support/users/devframer/)
 * (@devframer)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15483855)
 * Hello [@codersantosh](https://wordpress.org/support/users/codersantosh/)
 * Thank you so much for looking into it!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Does not import Elementor Select2 values’ is closed to new replies.

 * ![](https://ps.w.org/advanced-import/assets/icon-256x256.png?rev=2163691)
 * [Advanced Import](https://wordpress.org/plugins/advanced-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-import/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-import/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [devframer](https://wordpress.org/support/users/devframer/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/does-not-import-elementor-select2-values/#post-15483855)
 * Status: not resolved