Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,386 through 2,400 (of 3,958 total)
  • Author
    Posts
  • in reply to: meta_query with MB Custom Tables #8600
    Anh TranAnh Tran
    Keymaster

    I'm not sure about this, because the way WordPress build SQL queries from meta query object is very complicated. I'll see if I can do something.

    in reply to: Conditional logic not working with clones in groups #8591
    Anh TranAnh Tran
    Keymaster

    Thanks for letting me know about that. Currently, handling removing images inside the media library is lack. It's kind of complicated. I will try to figure out from the Media Popup code later.

    in reply to: Google Map is not showing marker! #8590
    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your help! This CSS is for making sure inputs do not overflow the column width. I've changed the CSS and updated the plugin. Please let me know how it goes.

    in reply to: Set default value for number field #8584
    Anh TranAnh Tran
    Keymaster

    I've tested and it works for me. Did you add the field for an existing post? The std parameter only works for new posts, or posts that the meta box hasn't saved before. I guess your post has an existing meta box that already saved at least once before. Can you check that?

    in reply to: meta_query with MB Custom Tables #8583
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for the greeting 🙂

    The Custom Table extension hasn't incorporated with the meta query yet. Please use 2 queries to get posts: 1 for getting post IDs from the custom table and one for getting posts. This is the sample code:

    global $wpdb;
    $post_ids = $wpdb->get_col( $wpdb->prepare(
        "SELECT ID FROM your_table
        WHERE obh_note_associated_members LIKE %s",
        $post->post_author
    ) );
    
    $query_args = array (
    	'post_type' =>	'obh_note',
    	'orderby'   =>	'meta_value',
    	'meta_key'  =>	'obh_note_date_time',
    	'order'     =>	'ASC',
    	'post__in'  => $post_ids,
    );
    
    //The query
    $member_notes = new WP_Query( $query_args );
    in reply to: Image Upload CSS Bug #8582
    Anh TranAnh Tran
    Keymaster

    I haven't encountered that before. Let me check that.

    FYI, the whole upload functionality is created by WordPress. We move it to the frontend, but don't touch on the core code.

    in reply to: Google Map is not showing marker! #8580
    Anh TranAnh Tran
    Keymaster

    Hi Saqib,

    Sorry for the late reply. We're just been back from the Tet holiday. Regarding the bug, I've just tested and the map market is showing:

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

    Do you see any error in the console? Normally, Google Maps will shows errors in the console of there's any.

    By the way, can you send me your meta box code to check?

    in reply to: The Metabox Builder is limited, is that correct? #8571
    Anh TranAnh Tran
    Keymaster

    By the way, you can do almost what missed with Custom Attributes for fields in the Builder. Please see the docs for that. It’s not intuitive, but works.

    in reply to: The Metabox Builder is limited, is that correct? #8570
    Anh TranAnh Tran
    Keymaster

    Hello,

    The Builder extension was made 3 yearss ago when the functionality of Meta Box and other extensions are limited. However, its purpose is providing full support for plugins. We have just acquired this extension from the original developer (Tan Nguyen) and thus, are updating it to catch all the changes in other plugins recently.

    We understand that there are some features are limited, and we’re trying to fix it. It would be great if you can help us by listing what you see missed.

    Regarding the online generator, yes, it’s the limited version of Builder with support only for the core Meta Box plugin. After updating the Builder to fully support other extensions, we’ll probably update it as well, but that’s not the priority.

    in reply to: Validation for post field title #8557
    Anh TranAnh Tran
    Keymaster

    Let’s close this topic as we have resolved it via email. The problem was that the custom attributes should be set for meta box, not for fields.

    in reply to: Editing post don't save existing meta fields #8556
    Anh TranAnh Tran
    Keymaster

    This is the default behavior of the plugin. And unfortunately, we have to follow that 🙁

    in reply to: Set default value for number field #8555
    Anh TranAnh Tran
    Keymaster

    Hi, please use “std” parameter.

    in reply to: Editing post don't save existing meta fields #8546
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, sorry for the delay in replying.

    The image_advanced fields loads saved value via ajax request, so it takes a little time. Only when it's loaded, the field inputs are added. So, please don't update the post before it finishes loading (in that case all inputs are not fully added, and updating will make the post lost saved values).

    in reply to: Conditional logic not working with clones in groups #8545
    Anh TranAnh Tran
    Keymaster

    I got it. In this case, please add 'clone_default' => true to the field and the std value will be cloned, too.

    in reply to: Clonable select_advanced with ajax #8540
    Anh TranAnh Tran
    Keymaster

    Hello,

    The logic should work. There is just a small typo in your code. In the response, the param should be id instead of id:.

    However, loading selected posts to show after updating is the next problem. We need to update options parameter to make the field renders properly. So, I added 2 more functions to get the saved data and put them in the options:

    https://pastebin.com/QNdW8cty

Viewing 15 posts - 2,386 through 2,400 (of 3,958 total)