Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,246 through 1,260 (of 3,958 total)
  • Author
    Posts
  • in reply to: TypeError: cyclic object value in file upload #14089
    Anh TranAnh Tran
    Keymaster

    Can you please try this fix and let me know if it works? I'll release new version when it's confirmed.

    in reply to: Hide/Show fields on select type #14085
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    I see the problem. At the moment, the conditions works only if both fields are in a same group clone. I see the module type is outside of the group where the editor belongs to. So it’s not working.

    in reply to: TypeError: cyclic object value in file upload #14084
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for your feedback. Let me check the issue.

    in reply to: Add multiple locations to a single map field? #14065
    Anh TranAnh Tran
    Keymaster

    Hi Aaron,

    Unfortunately, it's not possible yet :(.

    in reply to: Include custom fields in the standard post object #14064
    Anh TranAnh Tran
    Keymaster

    You mean including custom fields in the response of WP_Query?

    If so, then it's not supported. That might lead to a query performance. I think it's better to do something like this:

    $query = new WP_Query( $args );
    while ( $query->have_posts() ) : $query->the_post();
        $field_value1 = rwmb_meta( 'field_id1' );
        $field_value2 = rwmb_meta( 'field_id2' );
        // Do what you want.
    endwhile;

    Calling helper function or get_post_meta function inside a loop is a better way, since WP_Query already cache all post meta and they don't create any extra query to the database.

    in reply to: Hide/Show fields on select type #14063
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    The condition looks simple and should work. Do you put them in different groups?

    Anh TranAnh Tran
    Keymaster

    Hi Ryan,

    Thanks for your feedback. It's a good addition to the plugin. I'll do that in the next version.

    in reply to: Duplicate form submissions #14060
    Anh TranAnh Tran
    Keymaster

    Hi Ryan,

    This might be a generic problem for all forms. I think your suggestion is good. It can be done with some custom JS.

    in reply to: do I need to create nonces in my function file? #14059
    Anh TranAnh Tran
    Keymaster

    Hi Sean,

    You don't need to create nonces. They're already handled by the plugins.

    Security is an important thing that we care about!

    in reply to: Escaping and Sanitization #14056
    Anh TranAnh Tran
    Keymaster

    Hi Vinny,

    The sanitize method removes all empty values in the group. Empty values are empty string and empty array.

    The esc_meta simply overwrites parent's method, to make the value of sub-fields not escaped.

    They're not bugs and no need to fix them.

    Anh TranAnh Tran
    Keymaster

    Hi Brian, can you send me a temporary admin account to check that? Maybe the problem is somewhere else.

    in reply to: Change the user field view #14039
    Anh TranAnh Tran
    Keymaster

    Hi Sergio, please follow this docs.

    in reply to: Create terms taxonomy field #14038
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    We're working on this. There is some progress, but not good enough. We're trying to finish as soon as we can.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I’ve updated the Columns and Tabs extensions with a fix for that. Can you please update and let me know if that works.

    in reply to: Seems error in meta box plugin #14026
    Anh TranAnh Tran
    Keymaster

    Hi,

    Because of the dynamic of the field, my patch works as follows:

    • Do not set required for the input, instead set data-required="1".
    • When users add or remove a file, run a JS callback to check if there's no uploaded files, then set the required field for the first input (we only need to set for the first one as it's okay to have at least one input not empty if there are many inputs).

    I have no idea how your dynamic script works, maybe you get the the idea of how it works here and might change your script a little bit.

Viewing 15 posts - 1,246 through 1,260 (of 3,958 total)