Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 361 through 375 (of 3,708 total)
  • Author
    Posts
  • in reply to: Fatal error on multisite install #18083
    Anh TranAnh Tran
    Keymaster

    Hi Spencer, I've tried network activate the plugin and don't see that error. I guess you install both the AIO plugin (which has Elementor Integrator extension activated) and the separated Elementor Integrator extension. If that's the case, please delete the individual Elementor Integrator extension.

    in reply to: One-to-many relationship on "bay_mb_relationships" #18076
    Anh TranAnh Tran
    Keymaster

    Thank you for your kind words and your feedback. We keep improving the plugin and will try our best to make it more useful for you!

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

    Hi Nick, I've just updated AIO. Please try again.

    in reply to: How to disable submit when selecting an address? #18073
    Anh TranAnh Tran
    Keymaster

    The latest version is 1.2.6. It's already available since October last year.

    If you use Composer to update, please delete the vendor folder, clear Composer cache and run composer install again. For details, please see this docs.

    in reply to: One-to-many relationship on "bay_mb_relationships" #18072
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you want to force only one connection from one side of a relationship, please set 'max_clone' => 1 to the field on that side, like this:

    add_action( 'mb_relationships_init', function () {
        MB_Relationships_API::register(
            array(
                'id'   => 'workout_to_workout_exercises',
                'from' => array(
                    'object_type' => 'post',
                    'post_type' => 'workout',
                    'field' => array(
                        'max_clone' => 1, // Limit to 1 connection only.
                    ),
                ),
                'to'   => array(
                    'object_type' => 'post',
                    'post_type' => 'workout_exercises',
                ),
            )
        );
    } );
    in reply to: rwmb_get_registry() in network context #18071
    Anh TranAnh Tran
    Keymaster

    Hi Kevin,

    I've just tested and found that the wp-load.php file loads everything and thus, runs all necessary actions, including the init. That means when including that file, the init action is already fired, and meta boxes are registered. When switching to another site in the network, we simply switch the options/configure/themes, etc. and the actions are not triggered again.

    I'm not sure if there's a way to change that behavior. I don't have a solution for that at the moment. I'm very sorry.

    in reply to: WPML Issue with file_advanced input #18070
    Anh TranAnh Tran
    Keymaster

    Hi Archimidis, I've just checked with WPML and found that if you select the fields as "Copy", it will work well. I have made a video to demo it: https://www.loom.com/share/f18133cb6bcb46658599aa8060f66237.

    Please check that if that's your setup. If you have a different setup, please let me know.

    in reply to: WPML Issue with file_advanced input #18069
    Anh TranAnh Tran
    Keymaster

    Hi Archimidis, I'm working on it right now.

    in reply to: rwmb_get_registry() in network context #18048
    Anh TranAnh Tran
    Keymaster

    Hi Kevin,

    The meta boxes are added to the registry at init hook with priority = 20. Can you try to run the code after that?

    in reply to: MB Tabs and MB Group #18047
    Anh TranAnh Tran
    Keymaster

    Hi Pascal,

    The tabs extension works for top-level fields only. It doesn't support for sub-fields in groups (yet). I've added this as a note and will consider to work on it.

    Anh TranAnh Tran
    Keymaster

    Hi Mohammad,

    For image fields, each image ID is stored in a single row in the DB. If you don't want to delete old rows, then you can get them all via get_post_meta function and do some check before updating. But I guess it takes more (maybe a lot) of code to check. A better and simpler way to do that is delete all old rows and add new rows.

    in reply to: WPML Issue with file_advanced input #18036
    Anh TranAnh Tran
    Keymaster

    Hi Archimedes, thanks for your feedback. Let us check the problem and will fix it as soon as we can.

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

    Hi,

    It's not available in the plugin yet. There was a request to add it. I'll merge this topic into the older topic so we'll have discussion on the same place.

    Anh TranAnh Tran
    Keymaster

    Hi Mohammad,

    You can do that with this code:

    // Add
    $your_images_ids = [1,2,3];
    foreach ( $your_images_ids as $image_id ) {
        add_post_meta( $post_id, $field_id, $image_id, false ); // Notice the last parameter.
    }
    
    // Delete
    delete_post_meta( $post_id, $field_id, $image_id );
    Anh TranAnh Tran
    Keymaster

    Hi Martin,

    The helper function doesn't return labels for the field, but only values. You can get the label with this code:

    $parts_name = rwmb_meta( 'group' );
    $group_settings = rwmb_get_field_settings( 'group' );
    $select_settings = $group_settings['fields']['select_field_id'];
    foreach ( $parts_name as $part_name ) {
        $value = $part_name['item'];
        $label = $select_settings['options'][$value];
        echo $label;
    }
Viewing 15 posts - 361 through 375 (of 3,708 total)