Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 3,707 total)
  • Author
    Posts
  • 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.

    in reply to: Wrong action name being used in User Profile extension #12515
    Anh TranAnh Tran
    Keymaster

    Hi Joe,

    I've just invited you to join our team on Bitbucket, where we host all our extensions. Feel free to contribute code. We really appreciate your help!

    in reply to: Conditional Logic and Gutenberg #12495
    Anh TranAnh Tran
    Keymaster

    Hey guys,

    Sorry for long time. We've just updated Conditional Logic to 1.6.4, which now supports Gutenberg. It works for post_format and page_template and all rules internal for meta boxes / fields (such as show / hide a field based on another field). For some rules like checking by categories or custom taxonomies, there's a limitation from Gutenberg that can't be done at the moment. We'll work with Gutenberg team to find a solution and will update the plugin as soon as we can.

    in reply to: I need to know what Data Type I can use in MB Custom Table #12488
    Anh TranAnh Tran
    Keymaster

    Hi Jefferson, the data types are MySQL types and listed here.

    I see the field direct_sale that you used has type TINYINT(1), so I guess it's used for checkbox field, which has value 1 or 0.

    I've just checked the custom table extension and found a bug for displaying empty value (including 0). I'll fix it now.

    in reply to: Third Party Form Plugins #12487
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    We have resolved the problem of storing custom fields 🙂 Only the layout issue left.

    Regarding the 3rd party form, I have experience with Gravity Forms the most, and it works really well for all the situations I had in the past. So it's my obvious recommendation. WPForms and Ninja Forms are also popular, but I don't like their UI in the back end. Ninja Forms used to have a nice UI that blended well with WordPress, but it changed :(.

    in reply to: Linking CPTs together #12486
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    The MB Relationships extension automatically creates 2 meta boxes for 2 sides of each relationship with these IDs:

    • {$relationship_id}_relationships_from
    • {$relationship_id}_relationships_to

    So you might need to use these IDs to include into the front-end forms to let users select a post/user to make a connection.

    To display connected items in the front end, you need to code a little bit. The code is provided in the docs. As you're using Beaver Builder, I'd suggest creating a shortcode to display related items, then insert the shortcode into a text module.

    in reply to: Adding New Post via Frontend Submission #12484
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    I've checked your site and see you're using custom table to store custom fields. However, I can't find the code that create the custom table. Maybe you missed it, and that's why the custom fields are not saved. Can you please check that again?

    I've put the requests for group in my task list. Our team will work on that as soon as we can.

    Update: We have resolved the issue. The problem is that the meta box uses a custom table but there's no custom table registered. Deselect the checkbox to let meta box saves to custom table fixes the bug.

    Anh TranAnh Tran
    Keymaster

    Hi Gunvor, I've tested again and couldn't see that bug. Here is my video: http://recordit.co/HdBt0F4baT

    Did you try the latest code on Github?

    in reply to: Advanced search for custom post type #12443
    Anh TranAnh Tran
    Keymaster

    Hi, I'd recommend using FacetWP plugin or Search & Filter. We have in integration with FacetWP.

    in reply to: Field of type "OSM" in clonable group? #12442
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, let me check that again. It supposes to work in both case.

    in reply to: Select_tree with attribute required true not works #12441
    Anh TranAnh Tran
    Keymaster

    Hi Jefferson,

    Does the code work when you remove that attribute completely? Setting it false actually doesn't do anything.

Viewing 15 posts - 1,561 through 1,575 (of 3,707 total)