Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,546 through 1,560 (of 3,702 total)
  • Author
    Posts
  • in reply to: Your main plugin "meta-box" ignore language settings in WP #12595
    Anh TranAnh Tran
    Keymaster

    I've tried to install Czech language on my localhost and I don't see the quote changed. Check my screenshot: https://imgur.elightup.com/vQUhH3o.png

    in reply to: Connecting a specific USER ROLE to a specific POST TYPE #12594
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    1. The connection is available for all users. We do not have a way to control per user role yet.
    2. Yes, that's true. Just change the post type parameter.
    in reply to: Your main plugin "meta-box" ignore language settings in WP #12587
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi,

    Where do you output the quote?

    in reply to: Missing fields Yoast SEO after Metabox update to 4.15.8 #12586
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks a lot for your feedback. Looks like Yoast SEO adds its custom JS to the WordPress's libraries. I'll check and fix it.

    in reply to: Error on Upload #12571
    Anh TranAnh Tran
    Keymaster

    Hi kesit, we're updating the Group extension to fix that problem. Please wait a little bit.

    in reply to: Custom Field Generate URL Screenshot #12569
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    This snippet creates a shortcode to include the screenshot of a site. It works anywhere, with any plugin. What do you want to do with that?

    in reply to: Field Auto Increment #12568
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, it's not available. Because it's kind of impossible to know when to increase the field value: when a page is edited or when a new post is created (and so on).

    in reply to: Select advanced load remote data #12567
    Anh TranAnh Tran
    Keymaster

    Hi Aqib,

    It's not available on .org yet. I need to improve it a little bit. At the moment, it's very basic.

    in reply to: Function to retrieve all post data from custom table #12557
    Anh TranAnh Tran
    Keymaster

    Hi Jefferson,

    To get all fields from custom table, you can do a simple query:

    global $wpdb;
    $fields = $wpdb->get_row( "SELECT * FROM your_table WHERE ID={$post_id}" );
    echo $fields->your_field;

    If you use the helper function to get a field value, it will create a very similar query and cache the result. So the next call to get another field's value, it won't create any extra DB query.

    in reply to: Add Select Values from Other Custom Fields #12543
    Anh TranAnh Tran
    Keymaster

    Yes, that's the correct flow. It's useful whenever you want to do advanced things with code.

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

    Hi Vadym,

    I've just added a fix on Github. Please check it. Thanks.

    in reply to: Add Select Values from Other Custom Fields #12520
    Anh TranAnh Tran
    Keymaster

    Hi Pete,

    The MB Builder doesn't allow you to use dynamic values from other fields at the moment. You need to create the meta box and field by code.

    Here is an example:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $post_id = null;
        if ( isset( $_GET['post'] ) ) {
            $post_id = intval( $_GET['post'] );
        } elseif ( isset( $_POST['post_ID'] ) ) {
            $post_id = intval( $_POST['post_ID'] );
        }
    
        $options = array(
            'w' => get_post_meta( $post_id, 'w', true ),
            'ru' => get_post_meta( $post_id, 'ru', true ),
            // and so on.
        );
    
        $meta_boxes[] = [
            'title' => 'Your title',
            'fields' => [
                [
                    'type' => 'select',
                    'id' => 's',
                    'name' => 'Select',
                    'options' => $options,
                ],
            ],
        ];
    } );
    Anh TranAnh Tran
    Keymaster

    Hi Tamer,

    If all you want is just displaying customer info on the invoice edit page, then you can use a custom field custom_html to get their data and show. These data should be for customers, they are custom fields for customers. On the invoice edit page, you simply make a query and get the info.

    Anh TranAnh Tran
    Keymaster

    Hi Pete,

    Glad that you have resolved it. Please let us know if you need anything else.

    in reply to: Custom taxonomy and custom field #12517
    Anh TranAnh Tran
    Keymaster

    Hi,

    Select tree is exactly what you need.

Viewing 15 posts - 1,546 through 1,560 (of 3,702 total)