Forum Replies Created
-
AuthorPosts
-
May 31, 2018 at 5:12 PM in reply to: โ Migrating custom fields data between Custom Post Types and Taxonomies #9935
Anh Tran
KeymasterHi Mauro,
If your fields are just simple fields, you don't need to migrate at all. Meta Box, CMB2 and Alchemy use the same way to store value. So, all you need to do is creating same fields in Meta Box, make sure their IDs match the meta key in CMB2 / Alchemy.
That even works for repeater in CMB2. I haven't tried with all field types of CMB2, but so far it works for me pretty well. So please just try to create same fields in MB first. If something goes wrong, then you should write a small PHP script to:
- Get the old value
- Transform it to Meta Box's format. See here for details: https://docs.metabox.io/database/
- Update the value to the field
That's it.
Anh Tran
KeymasterOops, sorry. For geolocation extension, the API key is loaded via a filter, please see the sample code here:
https://docs.metabox.io/extensions/meta-box-geolocation/#google-api-key
Anh Tran
KeymasterHi Iman,
It's a meta box with:
'context' => 'after_title', 'style' => 'seemless',Please see here for more details about these params:
Anh Tran
KeymasterHi,
Yes, that's possible only through code. The MB Custom Post Type plugin allows you to put the CPT menu in the WordPress's main menu only. I'll try to make an update to support that.
Anh Tran
KeymasterHello Mauro,
Did you create the custom table first? This docs demonstrates how to create the table:
https://docs.metabox.io/extensions/mb-custom-table/
It requires some code and you have to put it in your
functions.phpor the PHP file of your plugin.Only after creating the custom table, you can save data into it. Please try it and let me know how it goes.
Anh Tran
KeymasterHi Mauro,
To make it completely transparent, Composer is the best solution. All premium extensions have supported Composer. Please see this docs for how to use it:
Anh Tran
KeymasterNo problem. Let me know if you need anything else ๐
Anh Tran
KeymasterCan you please try updating again? I've just checked and there's no problem.
If the update fails, can you send me the error message? The #2 error will be still there if you couldn't update.
Anh Tran
KeymasterHi there,
Thanks for the bug report! I've fixed it in this commit. I'll release new version soon.
Anh Tran
KeymasterHi,
I'm making some improvement to the
text_listfield, regarding your suggestion :). What do you think about this layout?https://imgur.elightup.com/d4qxPLa.png
Or do you prefer everything in 1 column, like this?
https://imgur.elightup.com/WNFY0wp.png
PS: To upload screenshot, please upload it to a service https://imgur.com and paste the link here.
Anh Tran
KeymasterUnfortunately, no. It's only available for
textfield.Anh Tran
KeymasterHello,
Thanks for the link. It makes sense :).
I'll put this in the development plan :).
May 29, 2018 at 2:15 PM in reply to: if i add 0 value for select filed code not exporting values #9848Anh Tran
KeymasterThanks, I'll check that.
Anh Tran
KeymasterBut why do you want this? Because for settings, you should be an admin to make changes. And if you're an admin, it's much easier to go to Dashboard > Your Settings Page to make changes. I'm quite confused about the use case of this.
Anh Tran
KeymasterI'm afraid no. If you're using
textfield, you can select values or enter your own value using datalist. See this docs for more info:https://docs.metabox.io/fields/text/
It's not supported in Fieldset Text, though.
-
AuthorPosts