Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 4,351 through 4,365 (of 4,839 total)
  • Author
    Posts
  • in reply to: Function name gone? #21154
    Long NguyenLong Nguyen
    Moderator

    Hi Floris,

    It's just the sample function name generated when you open the tab Code for intuition. MB Builder creates a post type meta-box for each field group and saves the information of fields as post content. Then it registers the custom field base on the post content. You can read more in the file wp-content/plugins/meta-box-builder/src/Register.php.

    in reply to: Custom Table Primary and Foreign Key #21152
    Long NguyenLong Nguyen
    Moderator

    Hi,

    When you delete the post from Trash, it removes the row in the custom table as well. See my screen record https://www.loom.com/share/218bb42c044045468f7355e20a3aa6f6.

    You can also set KEY for another column by using the third parameter.

    MB_Custom_Table_API::create( 'my_custom_table', array(
        'address' => 'TEXT NOT NULL',
        'phone'   => 'TEXT NOT NULL',
        'email'   => 'VARCHAR(20) NOT NULL',
    ), array( 'email' ) );
    
    in reply to: MB Builder show products #21128
    Long NguyenLong Nguyen
    Moderator

    Hi Dries,

    Suppose that you've created a post type name Product and it has slug product. After creating a meta box with custom fields and assign to the Product post type, you need to create a template file to display the field's value on the product page.

    Creating a file named single-[$custom_post_type_slug].php and put it into your theme’s folder, in this case the file name is single-product.php. Then use the helper function rwmb_meta() to show the field's value, follow this guide https://metabox.io/create-product-pages/ from step 3 to know how to do that.

    For more information on custom post type template, please follow this doc https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/.

    Long NguyenLong Nguyen
    Moderator

    Hi,

    I've checked to type something in Block editor but not see the issue. Could you please deactivate all plugin except Meta Box and MB Conditional Logic then make a screen record (with Loom) and share it? I will take a closer look and give a quick response.

    Long NguyenLong Nguyen
    Moderator

    Hi all,

    Please update the new version v2.1.2 of this extension to fix the issue.

    Thank you and have a nice day.

    in reply to: Taxonomy select_advanced select2 field is very slow #21113
    Long NguyenLong Nguyen
    Moderator

    Hi,

    #1 - This issue is so weird, querying to show 10 items (even 100 items) from the database is fast to show the dropdown items in 0-1s. I'm not sure with Nginx cache and reverse proxies of that server affect the ajax request while other servers not happen.

    #2 - It seems an issue with the select2 library when it makes an ajax request when opening the dropdown. Refer https://github.com/select2/select2/issues/110#issuecomment-419255510.
    You can turn off the ajax request by adding this code to the field setting.
    'ajax' => false
    Or make a request only the user type something to the search box by following this documentation
    https://docs.metabox.io/fields/taxonomy/#searching-parameters.

    'js_options' => array(
            'minimumInputLength' => 1, // THIS
    ),
    in reply to: How to get the post ID from a url #21107
    Long NguyenLong Nguyen
    Moderator

    Hi Jon,

    In the loop, we can use the function get_the_ID() to get the post ID then pass it to the URL of editing form.

    http://site.com/mb-frontend-submission-page/?rwmb_frontend_field_post_id=POST_ID

    in reply to: Import images into custom table #21090
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Let's dive a bit into the WordPress core and you will know how it stores the image information.

    • Each image after uploading to the Media Library is a post with the post type attachment. You will have the image ID and a link where the image stored http://your-site.com/wp-content/uploads/year/month/image-name.extension.
    • Meta Box image fields image, image_advanced, image_upload save the ID of the image (post ID attachment) into the database. It does the same as Featured Image of WP core, save the image ID in the table wp_postmeta with meta key _thumbnail_id.

    So in your case, I think you can do some steps:
    - Upload all images through Media Library.
    - Create a simple custom field like text to store the image URL.
    - Modify the CSV file, change the link of the image to the format http://your-site.com/wp-content/uploads/year/month/image-name.extension.
    - Import post meta through the CSV file with this plugin https://wordpress.org/plugins/wp-ultimate-csv-importer/.

    If you want to export the database to use outside of WordPress, you can use a third-party plugin to export the file. It will help you export the information you want to have in the file export.
    https://wordpress.org/plugins/wp-ultimate-exporter/
    https://wordpress.org/plugins/wp-all-export/

    in reply to: Refund Request #21081
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Would you mind sharing with us what your needs are? Maybe we can help you use the Meta Box and extensions to complete the project.

    in reply to: Can't save more of 10 Relationships from Admin #21080
    Long NguyenLong Nguyen
    Moderator

    Hi,

    By default, the object type user shows 10 items if you want to change the number, please use the setting query_args

    MB_Relationships_API::register([
        'id' => 'att_group_host_to_user',
        'from' => [
            'object_type' => 'post',
            'post_type' => 'ot-att-group',
            'meta_box' => [
                'title' => 'Host',
                'context' => 'normal',
            ],
        ],
        'to' => [
            'object_type' => 'user',
            'meta_box' => [
                'title' => 'Host of Groups',
                'context' => 'normal',
            ],
            'field' => [
                'query_args' => [
                    'number' => 15 // This
                ]
            ]
        ],
    ]);

    For more information, please follow the documentation https://docs.metabox.io/extensions/mb-relationships/#syntax.

    in reply to: Taxonomy select_advanced select2 field is very slow #21022
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Could you please deactivate all plugins except Meta Box and MB extensions then check the issue again? If it still happens, please share the admin site account via this form https://metabox.io/contact/, I will take a closer look and give a quick response.

    in reply to: Last update breaks my wordpress #21021
    Long NguyenLong Nguyen
    Moderator

    Hi all,

    Please update the new version v3.3.6 of this extension to fix the issue.

    Thank you and have a good day.

    in reply to: Last update breaks my wordpress #21012
    Long NguyenLong Nguyen
    Moderator

    Hi guys,

    Hotfix, please download this file and extracted https://drive.google.com/file/d/1s0XaxS9Sm4tZcR9nQZgTd1aKVhW7PVZJ/view?usp=sharing.

    Then replace the folder mbb-parser in this path wp-content/plugins/meta-box-builder/vendor/meta-box/. The new version will be released as soon as possible to cover the issue.

    in reply to: Page Header & Quantities disappeared? #21004
    Long NguyenLong Nguyen
    Moderator

    Hi Danielle,

    It looks like you are using the meta boxes which are created by the theme. The MB Builder is located in Admin dashboard -> Meta Box -> Custom Fields, you can follow this documentation to know how to use https://docs.metabox.io/extensions/meta-box-builder/.

    Could you please contact the theme's support to ask for help in this case? Let me know if there is any information.

    in reply to: Taxonomy select_advanced select2 field is very slow #21003
    Long NguyenLong Nguyen
    Moderator

    Hi,

    When the field is loaded, Meta Box only queries for saved terms (which is usually not many). So the initial query is very minimal and doesn’t cause any performance problem.

    That means, there are 10 items (default) loaded and ready to show on the first choice without query. After scrolling down to the bottom of the select field, it will do the next query to show more taxonomies. See my screen record to make sense.

    I think the issue is the initial select2 (select advanced) when you click to the select field, please try to deactivate all plugins except Meta Box and MB extensions to check this issue again. If it still happens, I recommend using the field type select.

Viewing 15 posts - 4,351 through 4,365 (of 4,839 total)