Title: Custom fields &#8211; variants
Last modified: January 6, 2021

---

# Custom fields – variants

 *  Resolved [pilvik](https://wordpress.org/support/users/pilvik/)
 * (@pilvik)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-variants/)
 * Hey,
 * I’m facing a challenge when I want to filter products on export when imported
   with a certain xml file. I have added a custom field on the normal import settings
   to know from which file this product came from. Let’s call this custom field ‘
   XX_ID’. I can filter the export by checking if this property is not empty and
   that works fine.
    The problem comes with variations. I can’t seem to find a way
   to add a custom field on the variants, with the standard version of Wpallimport.
   I tried adding it with update_post_meta, but nothing happens. Is this a feature
   only on the pro version?
 * Another thing I tried was to find the parent product of the variation and trying
   to check if the parent product has this custom field filled in. I am able to 
   get the parent product but can’t seem to find the value of the custom field again.
   Tried it with get_post_meta but again, didn’t get anything back from that. So
   is there another way to get the custom field value on the function editor?
 * If there’s other ways that you could think to go around this problem, please 
   share!

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-variants/#post-13873964)
 * Hi [@pilvik](https://wordpress.org/support/users/pilvik/),
 * > The problem comes with variations. I can’t seem to find a way to add a custom
   > field on the variants, with the standard version of Wpallimport. I tried adding
   > it with update_post_meta, but nothing happens.
 * The free version of WP All Import doesn’t support importing Custom Fields.
 * > Is this a feature only on the pro version?
 * Please direct all questions about the pro version here: [https://www.wpallimport.com/support/](https://www.wpallimport.com/support/).
 * > Another thing I tried was to find the parent product of the variation and trying
   > to check if the parent product has this custom field filled in. I am able to
   > get the parent product but can’t seem to find the value of the custom field
   > again. Tried it with get_post_meta but again, didn’t get anything back from
   > that. So is there another way to get the custom field value on the function
   > editor?
 * It’s difficult to advise on this without seeing your data, so I’d really like
   to check it on your site. Please open a support request at [https://www.wpallimport.com/support/](https://www.wpallimport.com/support/)
   with details on what you’re trying to do, and a link to this thread for reference.

Viewing 1 replies (of 1 total)

The topic ‘Custom fields – variants’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-variants/#post-13873964)
 * Status: resolved