Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 3,958 total)
  • Author
    Posts
  • in reply to: Ask about "image_advanced" field. #8381
    Anh TranAnh Tran
    Keymaster

    Yes, you can. Just set a setting 'max_file_uploads' => 1 for the field (see docs).

    Or better use the single_image field. It's created for this exact purpose. See docs.

    in reply to: image_upload field and MB Settings Page #8380
    Anh TranAnh Tran
    Keymaster

    Hi, your code seems to correct. When specify limit it returns an array of single image. So you might want to do this:

    $images = rwmb_meta( 'field_id', array(
        'object_type' => 'setting',
        'size'        => 'thumbnail',
        'limit'       => 1,
    ), 'options_name' );
    $image = reset( $images );
    echo $image['url'];
    in reply to: Custom forum posts #8379
    Anh TranAnh Tran
    Keymaster

    Please send me via email. Thanks.

    in reply to: MB Relationships - Admin edit panels #8378
    Anh TranAnh Tran
    Keymaster

    Hi, this is a good idea. I planned to worked with admin columns. I will make a not on that.

    in reply to: MB Relationships - Using each_connected multiple times #8375
    Anh TranAnh Tran
    Keymaster

    Hello,

    I've just tested again with a similar code and here is my result:

    https://imgur.com/a/3FpVk

    Can you check your code again please?

    in reply to: Not compatible with MB Builder? #8373
    Anh TranAnh Tran
    Keymaster

    Hi,

    The MB Builder hasn't supported the MB Term Meta yet. But you can get over it with "Custom Attributes" for meta box. Switch to "Settings" tab and set a custom attribute "taxonomies" and enter your taxonomy slug into the input, like in this screenshot:

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

    We'll update the plugin to make it easier for selecting taxonomies in the next version.

    in reply to: MB Relationships - API for setting relationships #8369
    Anh TranAnh Tran
    Keymaster

    Hi, I've just added the CRUD API to the extension. I will release the new version soon.

    PS: Just released new version 1.1.0. Please see this documentation for usage.

    in reply to: MB Relationships – bi-directional relationships #8368
    Anh TranAnh Tran
    Keymaster

    My bad. I thought it's possible for "from" side only. I will work on that now and update the plugin asap.

    PS: It's done. I will update the extension soon.

    PS2: Just released version 1.1.0. Please update.

    in reply to: MB Relationships - Connection Metadata? #8367
    Anh TranAnh Tran
    Keymaster

    It should be able. I've just received the bug report and will work on that now.

    PS: I'm done. Will update the extension tomorrow.

    in reply to: switch field shows a checkbox also in front end #8349
    Anh TranAnh Tran
    Keymaster

    Hi, I've just tested with the 2017 theme and it works. Probably there's some CSS conflicts with your theme. If that's the problem, please add some CSS to adjust it.

    in reply to: How to add a custom id to the "rwmb-meta-box" wrapper #8348
    Anh TranAnh Tran
    Keymaster

    Hi UG,

    Thanks for your questions.

    1. Currently, the wrapper div is not extendable. Can you tell me why do you need an ID?

    2. Does the custom field have the name setting? Can you post a screenshot? It suppose to have the same table layout as other WordPress fields for terms.

    3. That's right. It's the only place that WordPress provides hook to show other custom fields. We can't change it.

    in reply to: single image field abilty to save image url to database #8347
    Anh TranAnh Tran
    Keymaster

    Gotcha! In this case, I think file_input works best. You still can use the media library to upload/select images while still seeing the image URLs. If you have multiple images, probably need to make the field cloneable.

    in reply to: showing multiple metaboxes on front end forms #8346
    Anh TranAnh Tran
    Keymaster

    Hi,

    The "context" term is created by WordPress only for the editing screen in the admin area. It very much depends on the layout of the editing screen. In the frontend, there's no such layout which makes the "context" useless.

    in reply to: MB Relationships - Connection Metadata? #8345
    Anh TranAnh Tran
    Keymaster

    Oh, sorry. jo.on is right. There's a syntax error in the code. Please just remove the last ");". I supposed to write code for PHP 5.3, but then changed to the normal syntax (and forget to remove the last ");").

    in reply to: MB Relationships – bi-directional relationships #8343
    Anh TranAnh Tran
    Keymaster

    Hi,

    The relationship is bi-directional by default. That means you can query back and forth with the same API without any problem (or performance issue).

    However, to make the UI clear, the plugin only allows to select the connection from an object to others (the forward direction), and displays the backward connections in another meta box. It's the same behavior in Posts 2 Posts plugin, so I just brought it 🙂

Viewing 15 posts - 2,431 through 2,445 (of 3,958 total)