Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterWith the new filter in the version 1.1, you're now able to do that :). Please see the updated documentation for more details.
Anh Tran
KeymasterHi Florian,
Thanks for your patient. I've just updated the plugin with filters for the post fields. I also added a template loader, which you can use to define the template for each field (similar to what WooCommerce do).
Please follow the instruction in the updated documentation.
Anh Tran
KeymasterI was thinking about this and the "require" attribute. Haven't found a good way to implement them in the shortcode. What do you think about this? Any suggestion?
Anh Tran
KeymasterThanks for your feedback. I've just fixed this bug and updated the version 1.0.3.
Anh Tran
KeymasterThis is a good idea! I will add this in the next version.
Anh Tran
KeymasterHi Florian,
Thanks for your comment. I didn’t think about this, just thougth
$thisis enough. I’ve just released new version 1.0.2 with these properties public. Please update.Anh Tran
KeymasterI was misunderstanding. Just updated the plugin to 1.1.1. Please try it.
Thanks
Anh Tran
KeymasterHi,
The group is just like another fields. To make it cloneable, please just add
'clone' => true.Anh Tran
KeymasterStrange, the code works fine to me:
Anh Tran
KeymasterHi Jackky,
Can you please give us more details on the later issue?
September 28, 2017 at 10:41 AM in reply to: is it possible to put values from settings page to function register_widget()? #7055Anh Tran
KeymasterYour code looks fine. I just found the problem. It's just the MB Settings Page is loaded at
initwith priority 5, which is later thanwidgets_init(fires atinitwith priority 0). So, to solve this problem, simply replacewidgets_initwithinit!Anh Tran
KeymasterCan I see your full code? I've just tested with the latest version 1.1 and here is my result:

Anh Tran
KeymasterHi, the code still requires the Meta Box plugin to use. It's the heart of all extensions. With the exported code, you can remove the MB Builder extension, but still need to keep Meta Box active!
Anh Tran
KeymasterSorry to miss this topic. Can you please post your code here?
September 26, 2017 at 11:44 AM in reply to: is it possible to put values from settings page to function register_widget()? #7038Anh Tran
KeymasterHi,
As long as you saved theme settings, the settings is stored in the options table and of course, you can use the helper function to get it anytime you want, even before
inithook. That's why when you print the value of the functionprefix_mega_menu_widget_classes, it always work.I guess the problem is the way you register menu locations in your theme. It probably happens after
widgets_inithook. FYI,widgets_inithook fires atinitwith priority 0. So, if you register your menu locations atinitwith priority10, it will run *after* and doesn't work. Try to move the code to register menu locations to priority 0. (You still need to check to make sure it runs *before*widgets_init). -
AuthorPosts