Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterI mean in previous reply the validation works only with non-cloneable fields :(. I think in this case you can use custom attributes for phone fields ("pattern" to be exact). For more info, please read this docs:
https://metabox.io/docs/custom-attributes-for-inputs/
Here is the info for HTML pattern attribute:
http://webdesign.tutsplus.com/tutorials/html5-form-validation-with-the-pattern-attribute--cms-25145
Anh Tran
KeymasterI see. The reason is phone field is cloneable and each cloned field will have different ID (the HTML ID attribute that outputed). When click Add more button, we will get inputs with ID
phone,phone_1,phone_2, ... While the validation module uses input's ID to validate, it actually works with only the first field.Anh Tran
KeymasterThank you very much for the fix. It's added to the plugin here: https://github.com/rilwis/meta-box/commit/fdcbb4ffa7f50182e51c060de54b96d540593b48
Anh Tran
KeymasterHi @brightcreations, the clone of sub-fields is buggy inside a group. We're working on this to fix. Please give us some time.
Anh Tran
KeymasterCan you please post your code?
Anh Tran
KeymasterI'm not sure about qTranslate as I don't use it. Just saw its screenshot and I *think* it might work with tabs and conditional logic extensions. In the frontend, you need to do some PHP work to check the current language and get the correct fields.
WMPL is compatible with Meta Box. Several premium themes use both WPML and Meta Box without any issue. Meta Box is also supported by WPML team, so this is a good option.
Anh Tran
KeymasterHi @karissademi,
You can use the extensions in your products, both free and commercial. However, you can't just publish them on Github. It's more ethical than licensing.
Anh Tran
KeymasterHmm, it's a bug. It should show empty box instead of 1/1/1970.
While waiting for the fix, I think you can try set
stdtotime()to make it shows today's date.Anh Tran
KeymasterHi @Joe,
I think the best way is using code to register post types and meta boxes. Then you can use a version control system like Git to manage your code and deploy to your server. It's much easier and saves you a lot of time if you want to manage multiple websites (even not in a multisite network).
In case of multisite network, I think you can make a must-use plugin to register post types and meta boxes. That way you don't need to activate on all sites in the network.
I think the builder is not very useful here as it requires user input, meaning you have to click-type-click many times to add meta boxes for sites (even with import/export feature). Even though, it's useful if you want to add "extra" meta box for a specific site.
Anh Tran
KeymasterJust found 1 thing: the
post_typesparameter should be lowercase, similar to slug. Can you try changing its value toevent?Anh Tran
KeymasterHi @chillifish, is there any JavaScript error in the console?
Anh Tran
KeymasterHi @skynet, I've just tested steps 1) and 2) and after refresh permalink, it works. Can you try refreshing permalink (just go to Settings > Reading and click Save changes)?
April 19, 2016 at 10:54 AM in reply to: File Advanced Showing "1/1 Files" Even though I haven't uploaded any #2822Anh Tran
KeymasterCould you please try the latest version of Meta Box on Github? I've just tested the Group extension with 1 file_advanced field (max_file_uploads = 1) and it looks fine to me.
April 19, 2016 at 10:30 AM in reply to: File Advanced Showing "1/1 Files" Even though I haven't uploaded any #2821Anh Tran
KeymasterHi @tenmilecreative, let me see it and get back to you asap.
Anh Tran
KeymasterHi @skynet,
I didn't include these free extensions to the bundle because they're free and you can always download them from wordpress.org. It's more suitable for all users as well.
The MB Custom Taxonomy is used to create/edit custom taxonomies, while MB Custom Post Type is for custom post types. But after releasing both of them, I realised that people want all-in-one solution to create custom post types AND taxonomies, so I combine MB Custom Taxonomy into MB Custom Post Type. So now you can remove the MB Custom Taxonomy plugin and keep the MB Custom Post Type only.
When disable MB Custom Taxonomy plugin, you will see a new submenu Taxonomies under the Post Types menu.
-
AuthorPosts