Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 766 through 780 (of 3,958 total)
  • Author
    Posts
  • in reply to: Visible/hidden with id outside group #16143
    Anh TranAnh Tran
    Keymaster

    Hi Charlin,

    Just want to let you know that in recent versions of MB Conditional Logic, you're now able to set conditions for fields outside of the group. So, your conditions above will work (I've just tested)!

    in reply to: Custom CSS class on meta box #16130
    Anh TranAnh Tran
    Keymaster

    Hi Ryan, I've just added class param to meta box settings, which allows you to set an unique CSS class.

    in reply to: Blocks enqueue_assets is loaded everywhere #16129
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I've just fixed it in version 1.0.7. Please update.

    in reply to: Admin column indicating pagebuilder being used #16128
    Anh TranAnh Tran
    Keymaster

    Hi, you can do that with custom admin column. Please see the docs here:

    https://docs.metabox.io/extensions/mb-admin-columns/#custom-admin-columns

    in reply to: Pull a field from a different post #16127
    Anh TranAnh Tran
    Keymaster

    Hi,

    I'm not really clear because the term gallery is used in both post types.

    Where do you want the select field? In the gallery post type or in regular post?

    Doesn't the post field allow you to select a specific post?

    in reply to: Auto-populate field #16126
    Anh TranAnh Tran
    Keymaster

    Hi,

    1st and 2nd problem: I guess you're using Gutenberg, thus the required parameter doesn't work, because WordPress submits values via Ajax. Until now, there's no solution for that yet.

    3rd problem: I see you miss std from my code, so of courses, fields are not filled.

    Regarding the filter: you might want to try Search & Filter plugin. It's free on wordpress.org.

    Anh TranAnh Tran
    Keymaster

    Done! Here you are. The class is rwmb-activate-license.

    Anh TranAnh Tran
    Keymaster

    Hi Swami, how about adding a CSS class to the "Activate License" text? You can hide them with CSS.

    in reply to: Auto-populate field #16111
    Anh TranAnh Tran
    Keymaster

    Here is the code with std:

    https://pastebin.com/QHaMAXY2

    Regarding filtering results on the front end, please use a search & filter plugin like FacetWP. We support FacetWP via a free extension.

    in reply to: File Upload Validation #16110
    Anh TranAnh Tran
    Keymaster

    Hi Ranadeep,

    The extension validation is an add-on for the jQuery validation library and it's not included in Meta Box.

    In order to use it, please download the extension.js file from Github:

    https://github.com/jquery-validation/jquery-validation/blob/master/src/additional/extension.js

    And enqueue it like this:

    add_action( 'rwmb_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery-validation-extension', 'url to the js file', '', '', true );
    }

    Then you can use the extension rule.

    in reply to: Example code for Geo location Meta fields #16109
    Anh TranAnh Tran
    Keymaster

    Here you are:

    <?php
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title' => 'Test',
            'geo' => [
                'api_key' => 'your_api_key',
            ],
            'fields' => [
                [
                    'id' => 'address',
                    'type' => 'text',
                    'name' => 'Address',
                ],
                [
                    'id' => 'administrative_area_level_1',
                    'type' => 'text',
                    'name' => 'State',
                ],
                [
                    'id' => 'country',
                    'type' => 'text',
                    'name' => 'Country',
                ],
            ],
        ];
        return $meta_boxes;
    } );
    in reply to: Cant get image with php object #16107
    Anh TranAnh Tran
    Keymaster

    I see. That syntax is for PHP >= 5.4 which supports short array syntax. Please try:

    $room_show_img = RWMB_Image_Field::file_info( $room_img_id, array( 'size' => 'thumbnail' ) );
    

    It's better to upgrade to PHP 7.2, the performance is twice better than PHP 5.

    in reply to: License key says invalid and edit/save link also broken #16106
    Anh TranAnh Tran
    Keymaster

    Hi, please deactivate the Meta Box Updater module in AIO. It's no longer needed since the updater is merged into Meta Box.

    FYI: new version of AIO includes free extensions as well, so you might want to remove them from the plugin list.

    in reply to: Relationship field performance #16105
    Anh TranAnh Tran
    Keymaster

    I got it. Thanks for the clarification.

    I'm afraid there's no way to detect a field is closed or open, especially in different context (classic or block editor).

    At the moment, the queries when page loads are minimal as they query only selected items. I don't think that's a performance bottle neck.

    in reply to: Cant get image with php object #16091
    Anh TranAnh Tran
    Keymaster

    Hi,

    What do you mean "not php object way"? Is there any relation with PHP 5.6?

Viewing 15 posts - 766 through 780 (of 3,958 total)