Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 1,891 through 1,905 (of 3,790 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello Gerhard,

    You can try to pass a specific post ID and user ID to the MB Relationship API and see if it works:

    function create_team_member_profile($user_id) {
        ...
        // Check if Meta Box Relationships API is available and establish the relationship
        if ( function_exists('MB_Relationships_API') ) {
            // Correctly use the API to add the relationship from 'Team' post to 'User'
            MB_Relationships_API::add( 123, 456, 'team-member-user' );
        }
    }

    If not, I think the callback function is executed before Meta Box and MB extensions are initialized or the relationship ID isn't correct.

    in reply to: custom field data does not show, but is in the database #44482
    PeterPeter
    Moderator

    Hello,

    should the field name not have updated the database automatically?
    No. After creating the fields in the builder or registering with code, it helps you to show the field appearance on loading, there isn't any value in the database. You need to add something to the field and save the post to save the field value to the database.

    what do I need to edit in the database to get the fields back?
    You will need to use some custom code to update the field ID in the database. Please read more in this topic https://support.metabox.io/topic/update_post_meta-for-cloneable-group-fields/
    If you cannot complete the task, you can contact us here https://metabox.io/contact/
    We offer a customization service with an extra fee.

    in reply to: Not Showing on Front End? #44466
    PeterPeter
    Moderator

    Hello Andrew,

    If the block content shows the admin area, it should show in the frontend properly. You can try to deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check this issue gain.

    If it persists, please share the template.php file content here, I will help you to check the issue.

    PeterPeter
    Moderator

    Hello,

    In the screen record, I only see the field settings query_terms_img, nothing more. So I don't understand the issue. Please share the code that registers the custom fields (both field groups) and screen record of the issue again.

    Thanks for your patience.

    in reply to: custom field data does not show, but is in the database #44464
    PeterPeter
    Moderator

    Hello,

    I understand the issue. The field ID in the builder is product_description but in the database, it is product_description:, notice the colon character :.
    I correct the field ID in the database and it shows when editing the post as well. Screenshot https://imgur.com/a/AzX9x0v

    in reply to: Uncaught TypeError: RWMB_Clone #44460
    PeterPeter
    Moderator

    Hello,

    Please share your site credentials via this contact form https://metabox.io/contact/
    I will take a look.

    in reply to: custom field data does not show, but is in the database #44459
    PeterPeter
    Moderator

    Hello,

    Please share your site credentials via this contact form https://metabox.io/contact/
    I will take a look.

    in reply to: Relationships search functionality #44454
    PeterPeter
    Moderator

    Hello,

    Currently, the relationship extension doesn't support an option or a filter hook to adjust the search result and display items. I will inform the development team to explore the possibility.

    Thank you.

    PeterPeter
    Moderator

    Hello,

    Meta Box functions are executed at init hook with priority 20. If you use a code editor plugin, you can try to run the snippet at the init hook with a priority later than 20 and recheck the issue.
    Otherwise, please contact that plugin support to get further assistance.

    in reply to: Single Field for Lat, Long #44452
    PeterPeter
    Moderator

    Hello,

    Please export your field group to a JSON file and share it here. I will check it on my demo site. Following the documentation https://docs.metabox.io/extensions/meta-box-builder/

    in reply to: Single Field for Lat, Long #44445
    PeterPeter
    Moderator

    Hello,

    No, you should create a separate text field with the ID address_xxx to retrieve the suggestions address for the map. Here ist the sample code:

    'fields' => [
        [
            'name' => __( 'Address', 'your-text-domain' ),
            'id'   => $prefix . 'address',
            'type' => 'text',
        ],
        [
            'name' => __( 'Lat', 'your-text-domain' ),
            'id'   => $prefix . 'lat',
            'type' => 'text',
        ],
        [
            'name' => __( 'Lng', 'your-text-domain' ),
            'id'   => $prefix . 'lng',
            'type' => 'text',
        ],
        [
            'name'          => __( 'Map', 'your-text-domain' ),
            'id'            => $prefix . 'map_v0mlzrv141',
            'type'          => 'map',
            'api_key'       => 'xxx',
            'address_field' => 'address',
        ],
    ]
    in reply to: โœ…Revisions not working #44444
    PeterPeter
    Moderator

    Hello,

    Thank you for your feedback.

    I've escalated the 403 error to the development team, it should be fixed as soon as possible.

    in reply to: Uncaught TypeError: RWMB_Clone #44443
    PeterPeter
    Moderator

    Hello,

    There could be an issue with the field setting clone when registering custom fields on your site. Do you use the code to register custom fields? If yes, please share the code here, I will take a look.

    in reply to: Assigning default field values for existing posts #44442
    PeterPeter
    Moderator

    Hello Sridhar,

    If you use the function rwmb_set_meta(), you should hook to the action init with a priority later than 20. Or use the WordPress function update_post_meta() to set the field value for the page.

    in reply to: โœ…Hide Field On Specific MB Frontend Page Template #44435
    PeterPeter
    Moderator

    Hello,

    You can create a new custom field select with the field ID page_template to use the conditional logic. Then after saving the post, you can use the code to update the page template.
    Please follow this article https://tommcfarlin.com/programmatically-set-a-wordpress-template/
    and documentation https://docs.metabox.io/actions/rwmb-after-save-field/

Viewing 15 posts - 1,891 through 1,905 (of 3,790 total)