Meta Box, custom table, and WP All Import (WPAI)
Support › MB Custom Table › Meta Box, custom table, and WP All Import (WPAI)
- This topic has 4 replies, 2 voices, and was last updated 3 years, 5 months ago by
Long Nguyen.
-
AuthorPosts
-
November 6, 2021 at 4:38 PM #31770
Bellul
ParticipantI have a MB custom post type with MB custom fields. The post title is the regular WP Title field. The custom fields data are saved to a MB custom table.
I tried today to import simple text data using WPAI. But WPAI didn't detect any of the custom fields (I had manually saved data before to the post type). So I wrote the column names myself. The import seemed to work well - no complains from WPAI. The new posts are created. BUT no new data shows up in the custom table.
All custom fields data are saved to the postmeta table instead of the custom table! So is the case that if I use a custom table to store data, MB and WPAI will not work together at all? I know that MB does not support WPAI yet, but was under the impression (after reading other topics in this forum) that it should at least work with simple (text) fields.
Do you have a solution right now for this problem? Something like this suggestion for ACF: https://wordpress.org/support/topic/import-custom-fields-into-custom-table/ ? Any code to help me soklve this? Any other suggestion? You sometimes in this forum recommend the plugin "WP Ultimate CSV Importer", but when I asked them, they said: "We do not have support for the Metabox plugin".
In this topic https://support.metabox.io/topic/display-wp-all-import-images-in-image-advanced-field/ you say on October 23, 2021: "We are working to create an integration plugin between MB and WP All Import. Hopefully, it will be released soon." What do you mean by "soon"? This year? I really do hope so!! If you need a beta tester, I will happily be of assistance!
November 7, 2021 at 11:25 AM #31783Long Nguyen
ModeratorHi,
Because we've received a lot of feature requests and reporting issues so I do not have the estimated time for this question. The development team is working tirelessly to create the integration but it will take time to do that. Thanks for your patience.
November 7, 2021 at 12:30 PM #31785Bellul
ParticipantThanks Long! Appreciate that you work on this integration!
In the meantime, what would you suggest me to do to solve the issue of importing simple posts to custom fields where the data should be saved to a custom table instead of to "postmeta"?
Since this standard tutorial of yours does not seem to work: https://metabox.io/create-and-import-project-portfolio/, would it work to first import it to the postmeta table and then as a second step to move the data to the custom table, which you describe here: https://metabox.io/move-custom-fields-data-to-custom-tables/ ? Will that work?
Or do you have any other suggestion?
November 16, 2021 at 3:20 PM #31980Bellul
ParticipantLong, did you see my follow up question from November 7? In waiting for an add-on, would it work to first import it to the post and postmeta tables and then as a second step to move the data to the custom table, which you describe here: https://metabox.io/move-custom-fields-data-to-custom-tables/ ? Will that work?
November 16, 2021 at 11:14 PM #31985Long Nguyen
ModeratorHi,
Yes, you can import the data to the default table
wp_postmeta
then move it to the custom table. But please notice that WPAI can work with some simple field types of Meta Box liketext
,email
,number
,single_image
... It does not work with complicated fields likegroup
,cloneable
, fields with setting'multiple' => true
(image_advanced, image ...) -
AuthorPosts
- You must be logged in to reply to this topic.