Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,681 through 1,695 (of 3,702 total)
  • Author
    Posts
  • Anh TranAnh Tran
    Keymaster

    Hi BB,

    Sorry for the filter. I've made a change on the AIO plugin, which changes the way it saves data. So, the filter is no longer available. Instead of that, please filter the mb_aio_extensions. It accepts an array of extensions' slugs. For more info, please see the docs.

    in reply to: Slow loading and response time of 'editor screen' #11753
    Anh TranAnh Tran
    Keymaster

    Hello,

    I answered you on Github. I'm posting here in case anyone needed:

    The fix in this issue was applied in the Conditional Logic extension.
    However, as the extension heavily uses DOM elements to perform the check, it's still slow. I'd suggest to reduce the number of fields (by organizing them better) and/or the number of conditions.

    I'll keep improving the JS part, but probably not much at the moment.

    in reply to: Extra blank row being saved to database #11752
    Anh TranAnh Tran
    Keymaster

    Hi Purdue,

    Are you enabling revision and using MB Revision?

    in reply to: Bug: Checkboxes saved in custom table but shown in UI #11751
    Anh TranAnh Tran
    Keymaster

    Hi Purdue,

    I've re-checked and don't see that problem. Can you post your code here to test?

    in reply to: Data are not saved into the database. #11749
    Anh TranAnh Tran
    Keymaster

    Hi Vadym,

    Thanks a lot for your links. I've tested again and experienced the same problem. This issue is something related to the way Gutenberg saves data from TinyMCE editors. It's a bug in the Gutenberg and was reported here. The developer team seems not to have a final solution at the moment. The only workaround is running window.tinyMCE.triggerSave() before saving posts.

    in reply to: save Text List field using update post meta #11748
    Anh TranAnh Tran
    Keymaster

    Hello,

    text_list save data in multiple rows in the database. So, using update_post_meta might removes all existing values.

    I'd suggest using add_post_meta instead:

    add_post_meta($applicantID, $prefix . "address", 'one', false);
    add_post_meta($applicantID, $prefix . "address", 'two', false);

    Notice the last parameter, it must be set to false. For more info, please see the Codex.

    in reply to: OpenStreetMap is not working properly with Tabs Extension #11747
    Anh TranAnh Tran
    Keymaster

    Hi Saqib,

    Can you post your code? I checked again and it seems to be working to me. Here is my video: http://recordit.co/L6VvwBMlme

    in reply to: pre_get_posts to get all posts connected to single object #11746
    Anh TranAnh Tran
    Keymaster

    Hi Juanita,

    Sorry to get back late. I tried your code and created a video on that: http://recordit.co/BlAq5rhUVr. The query seems fine to me. Please take a look.

    in reply to: Can't see Metabox fields in MB Setting page. #11744
    Anh TranAnh Tran
    Keymaster

    I've checked the code again and it works for me. Please see the video here: http://recordit.co/fnO1hhDR0z

    I'm not doing anything special, only copy the code. Can you please check that again? If you see anything difficult, please send me an email with temporary admin account, I'll take a look at that for you.

    in reply to: REST API Not showing all custom meta boxes #11743
    Anh TranAnh Tran
    Keymaster

    We have found the bug. There are meta boxes sharing the same ID, which makes them overwritten when getting values. In case anyone see the same bug, please change meta box IDs, making sure they're unique.

    in reply to: Can't see Metabox fields in MB Setting page. #11706
    Anh TranAnh Tran
    Keymaster

    Hi,

    Can you please post your code here?

    in reply to: Add an element #11705
    Anh TranAnh Tran
    Keymaster

    Hi James,

    Currently, the only way to do that is via JavaScript, e.g. using JS to add HTML to the page title.

    in reply to: Save to custom table of another plugin #11704
    Anh TranAnh Tran
    Keymaster

    Hi,

    If GD uses the same data structure as MB Custom Table, then it's possible. MB Custom Table's data structure is very simple:

    • Column ID: store the object ID (post ID or term ID).
    • Other columns: store the custom field values.

    It's fine if some columns are different, but the ID column must be used for object ID. In that case, you can use MB Custom Table to handle the job for you.

    in reply to: Drag and drop order reset without consent #11703
    Anh TranAnh Tran
    Keymaster

    You're right about the order for bi-directional relationships. I'll add a task on that.

    Thanks!

    in reply to: pre_get_posts to get all posts connected to single object #11702
    Anh TranAnh Tran
    Keymaster

    Hi Juanita,

    I can't see 2 screenshots :(.

    But I think the problem is the way you get query var. The get_query_var should not be used in this situation as it gets the value from the main query. Please replace the code with:

    $id = $query->get('relation_id');
    $from = $query->get('relation_from');
    $to = $query->get('relation_to');
Viewing 15 posts - 1,681 through 1,695 (of 3,702 total)