Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 376 through 390 (of 3,704 total)
  • Author
    Posts
  • in reply to: Edit MB Frontend Submission in Popup #18012
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    Please try to add multiple popups. Each popup corresponds to a post. That way you don't need to populate the popup dynamically.

    in reply to: How to get the table name given the field_id #18011
    Anh TranAnh Tran
    Keymaster

    Hi Nick, the reason we make the property protected is because we don't want people to change it.

    Can you tell me why do you want to the the table name? Is that the table you created with your own code? Why don't you just pass the string (table name) instead of getting from fields?

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

    Hi Nick,

    Thanks for your reply. I'll take a note on this. Currently, the plugin doesn't copy values to the translations. It only add connections between items if they're chosen.

    I think you can hook to the plugin to add your own connections between connected items. I'll add more hooks to let you do that. What do you think?

    in reply to: Query Posts With WP_Query #18009
    Anh TranAnh Tran
    Keymaster

    Hi Dave, thanks for your feedback. I've just fixed the typo and updated the code in the docs regarding the empty case.

    Anh TranAnh Tran
    Keymaster

    Hi Nick, thanks for your feedback. It's a good thing to change and will be available in the next version of the plugin.

    in reply to: Sanitization of Fields input #18007
    Anh TranAnh Tran
    Keymaster

    Hi Pieter, please see my reply above and the documentation.

    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'] );
    } );
Viewing 15 posts - 376 through 390 (of 3,704 total)