Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterAwesome features and links. I will make a note.
Anh Tran
KeymasterThat also works :). Remember to
strip_tagson the frontend when you retrieve the meta value ๐Anh Tran
KeymasterI can't access that page. It's your internal admin page. So, the problem is how that page exports/imports content. I think it doesn't relates to Meta Box. Please try deactivate the text limiter extension and try again.
Anh Tran
KeymasterYes, that's right. Each purchase lets you get support and updates for 1 year. Please read more in the FAQ.
Anh Tran
KeymasterHi,
I think the only way to do that is using custom CSS, something like this:
input[type="checkbox"][value="xxx"] { background: url(image.jpg); }By default, the plugin outputs the checkbox only and CSS is the only way I think can resolve this.
Edit: Sorry, I was thinking about normal checkbox fields built without the Builder. I think the Builder don't have such feature.
Anh Tran
KeymasterJust curious, why do you need to store slug instead of ID?
Anh Tran
KeymasterHi,
You can run the following code:
$option = get_option( 'option_name' ); $option[$field_id] = $new_value; update_option( 'option_name', $option );Anh Tran
KeymasterHmm, it might relates with the way you register meta boxes. In 4.9.x, the biggest change is the WPML compatibility, which **forces** Meta Box to use
initaction to register meta boxes instead of previousadmin_init.So, if you wrap your code like this:
add_action( 'init', 'your_function' ); function your_function() { add_filter( 'rwmb_meta_boxes', 'slug_register_meta_boxes' ); }where
initor any other hook is used, please change it to:add_filter( 'rwmb_meta_boxes', 'slug_register_meta_boxes' );I'm not sure if that's the correct problem, but some people meet it, so I guess you do. Please check your code for that.
Anh Tran
KeymasterHi, the plugin doesn't restrict on the content length displayed in the front end. It might be your PHP function that gets the content and displays it. Please check this.
Anh Tran
KeymasterI've just released the new version 1.2.5 for this. Please update the extension.
Sorry for the delay.
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; } ); -
AuthorPosts