Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Cristian,
To show all attached images of the being edited post, you need to write custom code to get them and put them in the
custom_htmlfield. This field doesn't have any input and don't save anything to the database. You can use it just to show the content you want.Here is the sample code:
You might need to alter it and add more CSS ๐
Anh Tran
KeymasterI've just updated the plugin with fix for this. Please try it.
August 26, 2016 at 11:22 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3940Anh Tran
KeymasterI've recorded a video. It works on my case :(. Please take a look:
PS: To download the latest version on Github, please use this link:
Anh Tran
KeymasterHi,
Can you give me some more details on this? How is the data corrupted?
Anh Tran
KeymasterHi @wefit.lucas, @Flikweert,
I've just updated the Meta Box plugin on Github with a fix for removing clones. Please try it.
Thanks
AnhAnh Tran
KeymasterHi, please follow this documentation:
https://metabox.io/docs/how-to-create-nested-array-field-with-meta-box-builder/
Thanks
AnhAugust 25, 2016 at 4:54 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3931Anh Tran
KeymasterI was making the changes on the extension locally and forgot to update it. That's why it was working for me :(. I've just released a new version of the extension. Can you try it again?
Anh Tran
KeymasterHi @Flickweert,
Thanks for the info. I think you're right about the MainWP cannot trigger the updates. Maybe the hook order is wrong. A screen recording is very helpful.
Thanks
AnhAnh Tran
KeymasterPlease use
'std' => '#aabbcc'in your field.stdis used to set the default value of the field.August 23, 2016 at 5:44 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3912Anh Tran
KeymasterYes, the latest version on Github has the fix for map and that's the version I'm using. Or am I misunderstanding something?
August 23, 2016 at 4:30 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3910Anh Tran
KeymasterThat's quite strange to me. I'm using the latest version on Github and tested with the code above. Everything seems to be fine :(.
Can you try the latest version of both plugins?
Anh Tran
KeymasterAh, I got it. Sorry for the misunderstanding. I thought you want just to show the "Add new" button and don't show any input. I will check the "Delete" button now.
Anh Tran
KeymasterHi,
The meta value is saved in the database as a string. "True" or "false" is not as good as "0" or "1" when saving data. Besides, you still can use
if ( get_post_meta( get_the_ID(), 'checkbox', true ) )without any problem.Anh Tran
KeymasterI'm afraid we will keep the current logic, e.g. always keep at least 1 clone. There's no work around it at the moment.
Best regards
AnhAugust 18, 2016 at 9:24 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3879Anh Tran
KeymasterAh, I've just found the bug.
Please set the
tabattribute for meta box, not for fields. So:- Settings page define tabs
- Meta box define tab (where it belongs to)Please check out the documentation for the correct code.
Note: this is different from the Meta Box tabs extension, where:
- Meta Box defines tabs
- Fields define tab (where it belongs to)In combination of both Settings Page & Meta Box tabs, ideally you can create tabs for page and sub-tabs for fields ๐ (Just the idea, I haven't tested it yet).
-
AuthorPosts