Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 406 through 420 (of 3,958 total)
  • Author
    Posts
  • in reply to: select_all_none Not Working Perfectly #17993
    Anh TranAnh Tran
    Keymaster

    Hi Kiran,

    The post field loads posts via Ajax, and each call loads 10 posts by default. If you want to load all posts (so the Select All/None button work with all of them), please change the code to:

    array(
        'id' => $prefix . 'name',
        'name' => esc_html__( 'All Names', 'text-domain' ),
        'type' => 'post',
        'multiple' => true,
        'post_type' => array( 'names' ),             
        'select_all_none' => true, 
        'field_type' => 'select',
        'query_args' => ['posts_per_page' => -1'],
        'ajax' => false,
    ),
    in reply to: Single metabox on Reciprocal Relationship #17992
    Anh TranAnh Tran
    Keymaster

    Hi, can you try removing all custom code, and change the registration code to something like this:

     MB_Relationships_API::register( array(
            'id'         => 'good_companions',
            'reciprocal' => true,
            'from'       => array(
                'object_type'  => 'post',
                'post_type'    => 'plant',
                'admin_column' => "after title",
                'meta_box'     => array(
                    'title' => esc_html__( 'Good Companions', 'gtt-text' ),
                ),
            ),
            'to' => 'plant',
        ) );
    in reply to: Group Sanitzie Callback #17991
    Anh TranAnh Tran
    Keymaster

    Hi Austin,

    You're right. The way we built the sanitize_callback is for each cloned value, to make sure it's correct.

    In your case, I'd suggest using rwmb_{$field_id}_value which allows you to check and modify the submitted value.

    in reply to: Sugestions of exists operator #17990
    Anh TranAnh Tran
    Keymaster

    Hi, I haven't tested but I think a rule like ['logo', '!=', ''] should work. Can you please try it.

    in reply to: Clone file field in group is not displayed on edit page #17989
    Anh TranAnh Tran
    Keymaster

    Hi Yumikom,

    Can you share your code of the field group and some screenshots?

    in reply to: Relationship translations #17988
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    Which translation plugin do you use?

    in reply to: Select2 Library #17987
    Anh TranAnh Tran
    Keymaster

    We have switched to select4 and it doesn't support this feature anymore. There is some workaround here and the confirmation from the author.

    in reply to: Missing 'Link field' #17986
    Anh TranAnh Tran
    Keymaster

    Hi Davide,

    I'm afraid I can't give you an estimate at the moment. We have quite a long to-do list and this feature has less priority than some other items.

    Anh TranAnh Tran
    Keymaster

    I see. Maybe you need to manually enqueue the Google maps script on the page before running the snippet above. Something like this:

    add_action( 'wp_enqueue_scripts', function() {
        RWMB_Map_Field::admin_enqueue_scripts( ['api_key' => 'your key', 'language' => 'en'] );
    } );
    in reply to: Field data is not going to the table #17984
    Anh TranAnh Tran
    Keymaster

    Hi, there was a bug in the MB User Meta extension that relates to this issue. Please update the extension and try again.

    in reply to: Saving to My Blocks #17952
    Anh TranAnh Tran
    Keymaster

    Can you provide more details on that? Any screenshots/videos?

    in reply to: Collapsible group label bug #17951
    Anh TranAnh Tran
    Keymaster

    Hi Jackky, thanks for your investigation. I've added CSS to the MB Blocks extension and will release it in the next version.

    Regarding refactoring all the markup, I'm afraid it's not possible due to a lot of unexpected affects and BEM has quite low specificity (usually 1 class), which still be overwritten by WP or other plugins/themes.

    in reply to: List custom group field by month ascending #17950
    Anh TranAnh Tran
    Keymaster

    Regarding multiple select dates – is there a jQueryUI that does support this? And if so would you all look into adding it? This would be a huge feature.

    I'm afraid jQueryUI doesn't support this. You can see details here: jqueryui.com/datepicker/.

    My suggestion is using clonetable date picker, which allows you to do the same thing.

    Besides FacetWP how do you display data that’s cloneable / serialized?

    For displaying data, please see this docs. You need to use some coding, though.

    Regarding the last option, using the Conditional Logic extension – I’m not following. So I would create a new custom fields section and call it “trip-cal”. Then add a group field for each month (Jan, Feb, etc). Then add the Select Advanced field – but this is where I’m lost. How would I use the conditional logic to pull in my trip dates that are attached to different “custom field” group?

    This is a sample code that I have: https://pastebin.com/5mc6jtJv. Please try it and see if that's similar to what you have in your mind.

    in reply to: Issues with frontend forms #17948
    Anh TranAnh Tran
    Keymaster

    I see. Thanks for your video.

    That might be a problem of enqueuing assets on the front end for user profiles. I've just fixed in the latest version. Please update and try again.

    in reply to: Custom Block Categories #17947
    Anh TranAnh Tran
    Keymaster

    Currently, the MB Builder just lists the default categories. I'll add custom categories to the list and add to the next version.

Viewing 15 posts - 406 through 420 (of 3,958 total)