Forum Replies Created
-
AuthorPosts
-
August 25, 2016 at 4:54 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3931
Anh 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).
August 18, 2016 at 8:49 AM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3878Anh Tran
KeymasterI'm still checking :(. I will try to fix it asap.
Anh Tran
KeymasterHi Mark,
That line is added to the field parameters when you use code to define meta boxes. Please follow this documentation to know how to do that. And in the array of field parameters, simply add
'add_to_wpseo_analysis' => true.PS: I see you purchased MB Builder extension. If you want to add the field to the Yoast SEO analysis, in the field configuration panel, click the Show Advanced link, then click Add Custom Attribute button, and enter the param to the inputs like in this screenshot.
Anh Tran
KeymasterI think it's better to use
get_queried_object_id()๐Anh Tran
KeymasterHi Andi,
I've just checked that line and it's the sanitization value for group to remove empty values. Do you see the bug when creating a new post?
Anh Tran
KeymasterThanks for reporting. I will tell my developer to fix this.
Anh Tran
KeymasterHi,
This is term meta and you should use
get_term_metainstead ofget_post_meta:echo get_post_meta($term_id, 'dark_overlay', true); -
AuthorPosts