Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterDear David,
I've fixed this bug. Please update to the latest version (2.1.1) and you'll see multiple select boxes which let you select template names.
Cheers!
Anh Tran
KeymasterIf you still see the error in the future, feel free to create another topic.
Anh Tran
KeymasterI've just tried a cloneable group with a color field and doesn't see that bug. Also, the code to remove the default '#' is added to Meta Box quite a long time ago. Can you give me more details on that? How did you setup the meta boxes?
Anh Tran
KeymasterUnfortunately, it's not supported at the moment. Taxonomy field (and user, post fields) stores the term IDs in the database.
Anh Tran
KeymasterThat code above belongs to cmb2 plugin, which is a totally a different thing. Meta Box and cmb2 works similar but they don't share any common API. I couldn't understand why it can generate the fatal error above.
Anh Tran
KeymasterThe
fieldset_textalways set thetypeattribute totext(in the normalization method), so the only way to change that tonumberis hook to the normalize filter, like this:add_filter( "rwmb_normalize_{$field_id}_field", function ( $field ) { $field['attributes']['type'] = 'number'; return $field; } );Anh Tran
KeymasterLooks like your host doesn't support unzip or has some problem while unzipping. I have found some topics about the same problem, please take a look:
https://wordpress.org/support/topic/pclzip_err_bad_format-4/
http://stackoverflow.com/questions/17771578/wordpress-theme-upload-error-pclzip-err-bad-format
Anh Tran
KeymasterThe value of cloneable fields is stored as a sanitized array in 1 meta field and should be imported correctly IF you setup the same code on the imported site. Can you check that?
Anh Tran
KeymasterYou shouldn't use 2 taxonomy fields with the same
taxonomy, because taxonomy field sets the post terms, which makes 2 fields share the same value.You should use
taxonomy_advancedinstead. It works exactly the same astaxonomy, but doesn't set the post terms (and saves value as CSV in the post meta).Anh Tran
KeymasterWordPress uses
_thumbnail_idmeta key for the thumbnail. Its value is the ID of the featured image. So you can totally use any of image fields for it.Anh Tran
KeymasterDear David,
If you install both MB Builder and MB Include Exclude, you'll see this pane:
Best regards,
Tan
Anh Tran
KeymasterDear Matt,
You can also set
post_typesin your Meta Box instead of MB Conditional Logic:'post_types' => ['product']Tan
October 11, 2016 at 2:01 AM in reply to: ✅Conditional Logic to display meta box based on custom post type sub categories #4269Anh Tran
KeymasterDear azientar,
Sorry for the long silence, I've been sick recently. I've checked with my local development and it works properly. I'd suggest you remove the Post Type in Conditional Logic section and set
Post Typein General section instead, like this screenshot:Can you please make sure your taxonomy is
post_categoryand recheck your slug?Best regards,
Tan
Anh Tran
KeymasterDear UitgeverijDeviant,
Sorry for the long silence, I've been sick recently.
In order to create User Meta via Builder, navigate to Settings tab, in Custom Attributes section, add new attribute with key is
typeand value isuser, like this screenshot:Best regards,
Tan
Anh Tran
KeymasterI got it. To get
$fieldinadd_actionsmethod, you can use this snippet:$args = func_get_args(); $field = $args[0];It would do the trick.
By the way, why don't you just hook to
rwmb_after_save_postfrom outside the field class? -
AuthorPosts