Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,941 through 2,955 (of 3,702 total)
  • Author
    Posts
  • in reply to: one child group section #4591
    Anh TranAnh Tran
    Keymaster

    Please follow the instruction in the documentation. Here is a sample code:

    $meta_boxes[] = array(
        'title' => 'Car Information',
        'fields' => array(
            // Group
            array(
                'name' => 'Car Details',
                'id' => 'car_details',
                'type' => 'group',
                'fields' => array(
                    array(
                        'name' => 'Model',
                        'id' => 'model',
                        'type' => 'text',
                    ),
                    // Other sub-fields here
                ),
            ),
        ),
    );
    in reply to: Wheres my geolocation downloads? #4590
    Anh TranAnh Tran
    Keymaster

    Hi, that’s ok. I’m happy to help you switch to the Developer Bundle. As you paid via Paypal, I can refund you easily. Would you mind purchasing the Developer Bundle and then I can refund you 3 previous payments?

    in reply to: INVOICE for https://metabox.io/plugins/core-extensions-bundle/ #4589
    Anh TranAnh Tran
    Keymaster

    Just send me your company’s info via the contact form in the Contact page and I will send you the invoice.

    in reply to: My Account > Your Downloads #4588
    Anh TranAnh Tran
    Keymaster

    Yes, I will do it tomorrow 🙂

    in reply to: How to do about include 'mb-settings-page' in themes? #4587
    Anh TranAnh Tran
    Keymaster

    First, you need to update the extensions to the latest version. Then you need to include the plugin’s main file. For more info, please check this docs:

    https://metabox.io/docs/include-extensions-themes-plugins/

    You should also update Meta Box plugin to the latest version. The code above seems too old.

    in reply to: Get the terms doesn't work in admin after update #4559
    Anh TranAnh Tran
    Keymaster

    Maybe try replacing the code above with:

    add_action( 'init', function() {
        add_filter( 'rwmb_meta_boxes', 'prefix_register_meta_boxes' );
    }, 5 );

    And check the code to register terms, make sure it's hooked into init with priority 0, like this:

    add_action( 'init', 'prefix_register_tax', 0 );

    in reply to: Display Meta Box only on some pages #4557
    Anh TranAnh Tran
    Keymaster

    Hi Pipo,

    You need to use either the extension Conditional Logic or Include Exclude to do that. The Builder extension on its own doesn't support this.

    in reply to: How to assign roles to meta boxes using the MB #4538
    Anh TranAnh Tran
    Keymaster

    Can you make a screenshot of the settings?

    in reply to: How to display in front end #4532
    Anh TranAnh Tran
    Keymaster

    Is there a possibility to see or extract the code?

    Maybe just use var_dump or print_r?

    If you don't mind, please give me the post to register meta boxes. I can check that for you.

    Anh TranAnh Tran
    Keymaster

    Maybe your problem is the same as in this topic, where the post types are not registered when the code runs. You might want to do something like:

    add_action( 'init', 'prefix_register_post_types', 0 ); // 0 means high priority
    add_action( 'init', 'prefix_hooks', 5 ); // Hooks to 5 when all post types are registered. We should not hook to 10 or higher, because Meta Box already run at that time.
    function prefix_hooks() {
        add_filter( 'rwmb_meta_boxes', 'prefix_register_meta_boxes' );
    }

    The problem comes when I added compatibility for WPML.

    in reply to: Get the terms doesn't work in admin after update #4530
    Anh TranAnh Tran
    Keymaster

    I guess you probably add filter too soon, when the get_the_terms function doesn't exists. You might want to change your code to something like:

    add_action( 'after_setup_theme', function() {
        add_filter( 'rwmb_meta_boxes', 'prefix_register_meta_boxes' );
    } );

    This way, your function runs at after_setup_theme where all WP functions are available.

    in reply to: How to assign roles to meta boxes using the MB #4529
    Anh TranAnh Tran
    Keymaster

    Yes, you should use the extension "MB Include Exclude". It supports to control the visibility of a meta box based on user role.

    in reply to: "group" inside the "oembed" output video; #4528
    Anh TranAnh Tran
    Keymaster

    The group field doesn't auto turn the oembed URL into the video. To do that, you need to use a helper code, like this:

    $url = $group['paragraph_movie'];
    echo RWMB_OEmbed_Field::get_embed( $url );
    in reply to: How to display in front end #4515
    Anh TranAnh Tran
    Keymaster

    You mean when changing field_type, the returned value changes? Can you post the code to register this field to check? Thanks.

    in reply to: Sort order of 'post' field #4514
    Anh TranAnh Tran
    Keymaster

    That's correct! I forgot that you're using the Builder extension 🙂

Viewing 15 posts - 2,941 through 2,955 (of 3,702 total)