Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 3,707 total)
  • Author
    Posts
  • in reply to: Limitations of select_tree (field_type) #14743
    Anh TranAnh Tran
    Keymaster

    Hi ComSi,

    1. Context: this is set at meta box's level. Did you set for meta box or for the field?
    2. Multi-select: the documentation means the value saved for those field types are always multiple (you save both parent and children). But the selection for each level is only one. It's how the tree works.
    in reply to: Choose File in custom table #14742
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    All media fields store attachment IDs by default. If you want to store file URL (not path), then you can try file field with upload_dir settings. See this for details:

    https://docs.metabox.io/fields/file/#upload-to-custom-folder

    in reply to: MB Relationships display only post name #14741
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think a way to get this done is add disabled attribute to the select dropdown. You can do that with this code:

    add_action( 'init', function() {
        $mb = rwmb_get_registry( 'meta_box' )->get( 'posts_to_pages_relationships_to' );
        $mb->meta_box['fields'][0]['attributes']['disabled'] = true;
    }, 99 );

    And maybe add some CSS to hide the "+ Add more" button and the delete clone button.

    in reply to: Duplicate group fields feature #14728
    Anh TranAnh Tran
    Keymaster

    I got it.

    There is a settings clone_default for each field if you want to clone default values. You can set the default value for the whole group (which is an array of default values for sub-fields). Then when cloning, these values will be selected automatically.

    For user-selected options, they will be cleared when cloning. It's the design at first, since it makes the new clone clean and easy to start entering new values.

    in reply to: Set Selected by default in Radio box #14724
    Anh TranAnh Tran
    Keymaster

    Hi Nuno,

    You just need to define the field like this:

    array(
      'id' => 'field_id',
      'name' => 'Gender',
      'options' => array(
        'm' => 'Man',
        'w' => 'Woman',
      ),
      'std' => 'm',
    )
    in reply to: Duplicate group fields feature #14723
    Anh TranAnh Tran
    Keymaster

    Do you mean duplicate a group in the MB Builder?

    in reply to: Input type image_advanced vs image #14700
    Anh TranAnh Tran
    Keymaster

    Please send me the account via Contact page.

    in reply to: rwmb_profile_after_process don't give user_id #14699
    Anh TranAnh Tran
    Keymaster

    Hi Ribano,

    Let me check that. In the latest version, I removed the user_id in some places to fix the security bug. I'll check this again.

    in reply to: geometry field is broken after today's update #14698
    Anh TranAnh Tran
    Keymaster

    Hi Sam,

    I mean you need to download the .zip package from Github and upload to your site, overwriting the current version. It's not yet available in the .org, so you can't update from .org at the moment.

    in reply to: Group fields and the REST API #14697
    Anh TranAnh Tran
    Keymaster

    Hi Austin,

    That's right. The values of sub-fields don't go through the functions that transform the raw value to meaningful values. This is the initial design of the group data.

    Anh TranAnh Tran
    Keymaster

    I'm making some changes in other extensions and will update the AIO later. If you're in a hurry, please copy the files from the individual plugin and overwrite the files in AIO plugin.

    in reply to: Displaying Grouped Field Meta in Beaver Themer #14695
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    I answered Neil in another topic and via emails. Regarding this problem, the best way to do this at the moment is creating a shortcode and use the shortcode in the page builders. I added sample code in the documentation, please take a look:

    https://docs.metabox.io/extensions/meta-box-group/#outputing-group-in-a-page-builder

    Anh TranAnh Tran
    Keymaster

    Hi,

    The Problem is, that i read on your FAQ-Page, that i can’t use metaxbox for a small free-version of my Plugin? Why is this and how can i handle it?

    If you use free extensions, it's fine to do so. The rule is only active if you include premium extensions in your free plugins and release on .org. That make our premium work free and people have access to it freely.

    How can i disable the “Metabox” menuentry in the WP Admin?

    You can do that with this line of code:

    add_filter( 'rwmb_admin_menu', '__return_false', 99 );

    in reply to: MB Custom Table and wp_insert_post #14693
    Anh TranAnh Tran
    Keymaster

    Hi Will,

    When you insert posts, please don't use add_post_meta to add custom fields. Instead, use $wpdb to insert data to the custom table, like this:

    global $wpdb;
    $post_id = wp_insert_post( $post_data );
    $custom_fields = [
        'ID' => $post_id,
        'field_1' => $value_1,
        'field_2' => $value_2,
    ];
    $wpdb->insert( 'custom_table', $custom_fields );
    in reply to: WP all Import #14692
    Anh TranAnh Tran
    Keymaster

    Hi Smartbrand,

    We have it in our plan this year and will try to finish it. It's not available at the moment.

Viewing 15 posts - 1,081 through 1,095 (of 3,707 total)