Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,986 through 3,000 (of 3,702 total)
  • Author
    Posts
  • in reply to: Feature request : admin list filters (taxonomies...) #4363
    Anh TranAnh Tran
    Keymaster

    Awesome features and links. I will make a note.

    in reply to: โœ…How to add icons to checkboxes? #4362
    Anh TranAnh Tran
    Keymaster

    That also works :). Remember to strip_tags on the frontend when you retrieve the meta value ๐Ÿ™‚

    in reply to: โœ…Character Limit on Textarea #4352
    Anh TranAnh Tran
    Keymaster

    I 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.

    in reply to: โœ…Extensions licenses must be renewed every year? #4351
    Anh TranAnh Tran
    Keymaster

    Yes, that's right. Each purchase lets you get support and updates for 1 year. Please read more in the FAQ.

    in reply to: โœ…How to add icons to checkboxes? #4350
    Anh TranAnh Tran
    Keymaster

    Hi,

    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.

    in reply to: Select Box - Taxonomy use slug as value? #4344
    Anh TranAnh Tran
    Keymaster

    Just curious, why do you need to store slug instead of ID?

    in reply to: Help Update option value #4343
    Anh TranAnh Tran
    Keymaster

    Hi,

    You can run the following code:

    $option = get_option( 'option_name' );
    $option[$field_id] = $new_value;
    update_option( 'option_name', $option );
    in reply to: Problems with update from 4.8.7 to 4.9.6 #4342
    Anh TranAnh Tran
    Keymaster

    Hmm, 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 init action to register meta boxes instead of previous admin_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 init or 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.

    in reply to: โœ…Character Limit on Textarea #4341
    Anh TranAnh Tran
    Keymaster

    Hi, 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.

    in reply to: Assign Custom Post type to Custom Taxonomy #4336
    Anh TranAnh Tran
    Keymaster

    I've just released the new version 1.2.5 for this. Please update the extension.

    Sorry for the delay.

    in reply to: Meta Box Update - Failure during update #4317
    Anh TranAnh Tran
    Keymaster

    If you still see the error in the future, feel free to create another topic.

    in reply to: Not able to save my pages with cloned groups #4316
    Anh TranAnh Tran
    Keymaster

    I'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?

    in reply to: Select Box - Taxonomy use slug as value? #4315
    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not supported at the moment. Taxonomy field (and user, post fields) stores the term IDs in the database.

    in reply to: Using metabox in few plugins at the same time #4314
    Anh TranAnh Tran
    Keymaster

    That 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.

    in reply to: Field Type "fieldset_text" as number #4295
    Anh TranAnh Tran
    Keymaster

    The fieldset_text always set the type attribute to text (in the normalization method), so the only way to change that to number is hook to the normalize filter, like this:

    add_filter( "rwmb_normalize_{$field_id}_field", function ( $field ) {
    	$field['attributes']['type'] = 'number';
    
    	return $field;
    } );
Viewing 15 posts - 2,986 through 3,000 (of 3,702 total)