Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
is_front_page()is a template function and I don't think it works in the backend.I suggest get the front page ID and check by page ID. To get the front page ID, just use
get_option( 'page_on_front' ).Anh Tran
KeymasterI'm debugging :(. Another error appears and I have to fix it. I'm trying to do that as fast as possible.
Anh Tran
KeymasterIt's fine :). If you see any error, please just let me know.
Anh Tran
KeymasterFYI, the new version is released and it would have the fix for this bug.
Anh Tran
KeymasterWe have a ticket on this but haven't made any progress. We will try to do this. Let's tracking on Github.
September 11, 2016 at 10:18 PM in reply to: Including/Excluding via page template when templates in subdirectory #4062Anh Tran
KeymasterHi,
If you put the page template in a subfolder
page-templates, you need to use'include' => 'page-templates/name.php'instead of justname.php.Anh Tran
KeymasterHi FED, the bug is complicated and I haven't found a good solution yet. I will let you know as soon as I find a way.
Thanks
AnhAnh Tran
KeymasterI've just fixed the bug and released new version. Please update and check it.
Thanks
AnhSeptember 8, 2016 at 3:15 PM in reply to: Groups should be native functionality, not a premium extension #4040Anh Tran
KeymasterYes, all of the methods above should work. The way we load Meta Box and extensions doesn't matter too much, because the Group extension is loaded on
inithook and at that time Meta Box is already loaded.Anh Tran
KeymasterYou can set default values for cloned fields by assigning an array of values to
stdparameter.Assuming you have a cloned text field
phoneswhich store phone numbers. You can set default value like this:$default = array( '0123-456-789', '001-002-003', ); // Then in your field array( 'name' => 'Phone numbers', 'id' => 'phones', 'type' => 'text', 'clone' => true, 'std' => $default, )September 7, 2016 at 11:10 PM in reply to: Groups should be native functionality, not a premium extension #4034Anh Tran
KeymasterHi Sam,
Currently, I recommend using TGM Plugin Activation to include the extensions in a plugin or theme. It's safe and just works.
But if you want to include it without listing it as an actual plugin, you can simply copy it into your theme/plugin and include the main file of the extension. It works in most cases, but sometimes there are compatibility troubles (not many). You should do this only when you really need.
Regarding your question about the necessity of the Group extension: it's not always true. Most people and most premium themes only need simple solution for custom fields where the core free plugin is enough. I also make premium themes on ThemeForest and most of them only requires Meta Box. Group is helpful for (I guess) digital agencies where they create complex websites with complex data for their customers. I think you're one of them ๐
Anh Tran
KeymasterI'm working on it. I probably will release a new version for Group tomorrow. Please wait.
Thanks
AnhAnh Tran
KeymasterThank you very much. I've just got it. I will check it now.
AnhAnh Tran
KeymasterHi,
Currently, wysiwyg can be put in the first level of group only. Putting it in a multi-level subgroup might break the cloning feature. If there's nothing special, I suggest using the textarea for that instead.
Thanks
AnhSeptember 6, 2016 at 8:14 AM in reply to: URGENT: Since site migration, metabox is breaking entire WP backend #4020Anh Tran
KeymasterIf the reinstalling fixes the bug, I guess somehow the installed version of MB plugins misses some files. That's strange, but can be.
-
AuthorPosts