Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 3,702 total)
  • Author
    Posts
  • in reply to: Image Not Retained On Update #11062
    Anh TranAnh Tran
    Keymaster

    Hello,

    Do you see images displayed when you update the post? Sometimes it takes some seconds to fully load the images.

    in reply to: Front-end validation messages #11061
    Anh TranAnh Tran
    Keymaster

    Hi Jason, can you give me the updated code to register meta box to check again? Have you taken a look at my code?

    in reply to: My custom metabox stops working on WP 4.9.8 #11060
    Anh TranAnh Tran
    Keymaster

    Hi FED,

    Since 4.15, I've optimized the code for all "choice" field. I removed the filter_options function that is not needed. Can you check the source code of the choice field and try the latest version on Github?

    in reply to: Need more example to show like the demo #11059
    Anh TranAnh Tran
    Keymaster

    Hi, can you just try putting this code into your theme's functions.php file?

    add_action( 'mb_relationships_init', function() {
        MB_Relationships_API::register( array(
            'id'   => 'posts_to_pages',
            'from' => 'post',
            'to'   => 'page',
        ) );
    } );

    You'll see meta boxes "Connected From" and "Connects To" for posts and pages. It's the most basic usage.

    Please try it.

    in reply to: Taxonomy not displaying after update #11058
    Anh TranAnh Tran
    Keymaster

    Hi Jason,

    Can you try Meta Box latest version on Github?

    in reply to: Meta Box plugin call un-needed query ? #11051
    Anh TranAnh Tran
    Keymaster

    Hey guys, I've just pushed 2 commits to fix this problem on Github. Could you please try it and let me know the result?

    Thanks,
    Anh

    in reply to: Meta Box plugin call un-needed query ? #11035
    Anh TranAnh Tran
    Keymaster

    Hello,

    Thanks a lot for your reporting! I've noticed the problem, too and will fix it today!

    in reply to: Taxonomy Archive Image #11024
    Anh TranAnh Tran
    Keymaster

    Hi Michael,

    What you asked is kind of pulling data from MB Term Meta to the Themer. This is not supported at the moment. We'll add it in the next version.

    Anh TranAnh Tran
    Keymaster

    Hello, let me check it. I think the Text Limiter plugin doesn't work well with clone.

    Update: I've just fixed it in version 1.1.0. Please update!

    in reply to: New Google maps pricing policy and MB geolocation #11021
    Anh TranAnh Tran
    Keymaster

    It's not been added to the Builder yet. We'll update the Builder soon.

    in reply to: Submenu title does not work in addon MB Settings Page #11020
    Anh TranAnh Tran
    Keymaster

    Hello,

    The submenu_title works only if the parent menu has at least one child. So if you create only one top-level settings page, it won't show the submenu. You need to create another sub-page, then the submenu_title will show in the menu.

    https://imgur.elightup.com/e3FS0sm.png

    in reply to: Best way to translate options page #11019
    Anh TranAnh Tran
    Keymaster

    Hi Bezzo,

    Interesting question! Thanks for asking this.

    Using wpml-config.xml is the standard way and is recommended by WPML. However, if you need to have different settings per language, you can use the ICL_LANGUAGE_CODE constant to detect current language and set the field IDs based on that.

    This is the sample code:

    $prefix = ICL_LANGUAGE_CODE . '_';
    $meta_boxes[] = [
        'title' => 'Fields',
        'fields' => [
            [
                'id' => $prefix . 'text',
                'name' => 'Text',
                'type' => 'text',
            ],
            // Other fields.
        ],
    ];

    To get the field value, you can create a helper function like this:

    function my_setting( $field_id ) {
        $option_name = 'my_option';
    
        $field_id = ICL_LANGUAGE_CODE . '_' . $field_id; // Prepend the language code.
        return rwmb_meta( $field_id, array( 'object_type' => 'setting' ), $option_name );
    }
    in reply to: WYSIWYG without p but with br #11018
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    I understand. However, the problem is Beaver Themer auto outputs text using wpautop, which wraps text in <p> tag.

    Why don't you use CSS to reduce the spacing? I think it's fast and works.

    Anh TranAnh Tran
    Keymaster

    Hi Lukas,

    Did you check this checkbox?

    https://imgur.elightup.com/H9dezgo.png

    in reply to: Front-end validation messages #11003
    Anh TranAnh Tran
    Keymaster

    Hi Jason,

    I found 3 things:

    1. Your syntax isn't correct. You need to put validation rules as a param of meta box, not under fields. Here is the correct code: https://ghostbin.com/paste/gnch6
    2. In the rules and messages, because the field is a checkbox list, its checkboxes has name obh_member_membership_tags[], not obh_member_membership_tags. We have to use the input name, not the field ID. See the code in point 1 how I fixed it. I should have mentioned that clearer in the docs.

    3. There's also a bug with Meta Box, I've fixed it on Github.

    Please try it and let me know if there's still any bug.

Viewing 15 posts - 1,846 through 1,860 (of 3,702 total)