Title: Import only not null values
Last modified: April 7, 2018

---

# Import only not null values

 *  Resolved [onlycj](https://wordpress.org/support/users/onlycj/)
 * (@onlycj)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/import-only-not-null-values/)
 * I have more than 30 acf in my post. Then i make import by existing posts they
   totally rewrite, but i need to update only not null values.
    Help me please!

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/import-only-not-null-values/#post-10157002)
 * Hi [@onlycj](https://wordpress.org/support/users/onlycj/)
 * > i need to update only not null values
 * You would need to write some custom code and use our API to do this. You’ll find
   information on our “pmxi_acf_custom_field” hook and an example snippet that you
   can adjust as per your needs here: [https://github.com/soflyy/wp-all-import-action-reference/blob/master/all-import/pmxi_acf_custom_field.php](https://github.com/soflyy/wp-all-import-action-reference/blob/master/all-import/pmxi_acf_custom_field.php).
 *  [subbotaanton](https://wordpress.org/support/users/subbotaanton/)
 * (@subbotaanton)
 * [8 years ago](https://wordpress.org/support/topic/import-only-not-null-values/#post-10238282)
 * Hi [@wpallimport](https://wordpress.org/support/users/wpallimport/) !
 * I tried to use this approach, but it looks like a post is modified before this
   hook.
 * When I execute $existing = get_post_meta( $pid, $name, true ); in wp_all_import_pmxi_acf_custom_field,
   it always gives me empty values, and in my opinion it happens because of wrong
   order of execution the hook and changing a post.
 * PS If I try to get meta from another post in the same hook, it works fine, so
   no debt about get_post_meta.
 * [1](https://i.imgur.com/A62vqt5.png)
 * [2](https://i.imgur.com/pXZkXXV.png)
 * [3](https://i.imgur.com/iH52T5T.png)
    -  This reply was modified 8 years ago by [subbotaanton](https://wordpress.org/support/users/subbotaanton/).
      Reason: added screenshots
 *  [subbotaanton](https://wordpress.org/support/users/subbotaanton/)
 * (@subbotaanton)
 * [8 years ago](https://wordpress.org/support/topic/import-only-not-null-values/#post-10238535)
 * PPS Fixed: “When I execute $existing = get_post_meta( $pid, $name, true ); in
   pmxi_acf_custom_field hook”

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

The topic ‘Import only not null values’ is closed to new replies.

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

 * 3 replies
 * 3 participants
 * Last reply from: [subbotaanton](https://wordpress.org/support/users/subbotaanton/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/import-only-not-null-values/#post-10238535)
 * Status: resolved