Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Maxell,
1. The empty option was created for select2 library and is required for the placeholder. Are you using simple select field?
2. Probably check if it's empty is a better way:
$meta = rwmb_meta( 'field_id' ); if ( ! empty( $meta ) ) { // Output something }Anh Tran
KeymasterWhich version of Meta Box are you using? Is there any chance that you upgrade to 4.8.5?
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.
-
AuthorPosts