Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 3,958 total)
  • Author
    Posts
  • in reply to: Custom Taxonomy and Advanced Taxonomy #13977
    Anh TranAnh Tran
    Keymaster

    Hi, I think that's doable with some hook.

    Like you use a taxonomy_advanced to save the term IDs in the custom table. Then you hook to "after save post" to set the terms for the post.

    This is what I have in my mind:

    add_action( 'rwmb_YOURFIELD_after_save_field', function ( $null, $field, $new, $old, $post_id ) {
        $taxonomy = reset( $field['taxonomy' );
        wp_set_object_terms( $post_id, $new, $taxonomy );
    }, 10, 5 );

    Change YOURFIELD to your field ID.

    in reply to: Default value in radio field #13976
    Anh TranAnh Tran
    Keymaster

    Hi, the std takes a value from the options attribute of the field.

    Don't that work on new posts?

    in reply to: WYSWIYG field and Shortcodes #13975
    Anh TranAnh Tran
    Keymaster

    Hi yumikom, please try the rwmb_the_value filter:

    add_filter( 'rwmb_get_value', function( $value, $field, $args, $object_id ) {
        if ( 'wysiwyg' === $field['type'] ) {
            $value = do_shortcode( $value );
        }
        return $value;
    }, 10, 4 );
    in reply to: How can I get an invoice for a purchased product? #13965
    Anh TranAnh Tran
    Keymaster

    Hi Gil, I've just got your contact message and sent you the invoice. Please check your inbox.

    in reply to: 500 Error after Checking Boxes in All in One Tab #13952
    Anh TranAnh Tran
    Keymaster

    Hi Galen, this error is caused when you have both AIO and MB Custom Post Type plugin enabled. I'll update the MB Custom Post Type to make a better check.

    Thanks for your feedback!

    in reply to: Marker size in map field. #13951
    Anh TranAnh Tran
    Keymaster

    Hi, please follow the docs here. It's quite clear (as I can't say anything clearer). And if there's something you don't understand, please let me know.

    in reply to: Not showing meta data in rest response #13950
    Anh TranAnh Tran
    Keymaster

    Hi Milen,

    In the WP REST API docs (link I posted above), you don't need to make your own queries. It's automatically created when you visit domain.com/wp-json/wp/v2/posts, you'll see something like this (I just access the Meta Box's URL: https://metabox.io/wp-json/wp/v2/posts/ - you can click on that to see the result):

    https://screenshots.firefox.com/ZBW0QoeQbcLSdVVj/metabox.io

    in reply to: Error when updating Metabox AIO #13938
    Anh TranAnh Tran
    Keymaster

    Hi Sandra, the fix is available in the standalone extension Meta Box - Elementor Integrator. The AIO update will be updated in a few days.

    Anh TranAnh Tran
    Keymaster

    Hi Adam,

    I've created a video tutorial for you, please watch it and let me know if you have any difficulty.

    https://youtu.be/o8ICxe8nbrI

    in reply to: How to add CAPTCHA to frontend form #13930
    Anh TranAnh Tran
    Keymaster

    Hi, we're working on this. I'll closed this topic as it's duplicated with this one.

    in reply to: select_tree: Only save last term descendent #13929
    Anh TranAnh Tran
    Keymaster

    Hi Johannes,

    I'm afraid this is impossible. The plugin always save all selected items in all select dropdown.

    in reply to: List of post to edit in frontend #13928
    Anh TranAnh Tran
    Keymaster

    Hi, I think creating 2 pages (one for create, one for edit) is better. Mixing them together might create some confusion. Is there any problem with that setup?

    Anh TranAnh Tran
    Keymaster

    Hi Adam,

    Are you using MB Builder to create fields? Do you want to store custom fields value in post meta (the normal WordPress way) or in a custom table? I'm quite confused since your first post is about custom table, but the 2nd one is not.

    Anyway, can you post some screenshots so I can see what happened?

    in reply to: Not showing meta data in rest response #13926
    Anh TranAnh Tran
    Keymaster

    Hi Milen,

    First, you don't need the WP Rest API plugin anymore. The Rest API was merged into WordPress core, so you can just use REST API directly.

    Second, I see you're using WP_Query to get posts, which is not the way REST API works. Please follow the documentation on using it.

    in reply to: I want a refund #13924
    Anh TranAnh Tran
    Keymaster

    No problem. I've just issued the refund and you'll receive it shortly.

    If there's a chance when you might need Meta Box again, you're very welcomed here.

Viewing 15 posts - 1,276 through 1,290 (of 3,958 total)