Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 4,839 total)
  • Author
    Posts
  • Long NguyenLong Nguyen
    Moderator

    Hi,

    You need to assign values to the variable $vardagar and $oppettider before, or pass them directly to the helper function.

    $vardagar = 'your_field_ID';
    $oppettider = 'your_option_name';
    $value = rwmb_meta( $vardagar, ['object_type' => 'setting'], $oppettider ); 
    echo $value;

    or

    $value = rwmb_meta( 'your_field_ID', ['object_type' => 'setting'], 'your_option_name'); 
    echo $value;
    in reply to: Custom Fields just deleted again #32704
    Long NguyenLong Nguyen
    Moderator

    Hi Jack,

    You can try to edit the JSON file and change the post type under the field settings, then re-import to the builder.

        "settings": {
            "object_type": "post",
            "post_types": [
                "portfolio" //here
            ],
            "tab_style": "default",
            "tab_default_active": "",
            "custom_table": {
                "name": ""
            },
            "class": "",
            "prefix": "",
            "text_domain": "your-text-domain",
            "function_name": "your_prefix_function_name"
        },
    in reply to: CSS not working for views #32703
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Where did you implement the CSS code? If it is added in the tab CSS of the View, I see it still works as well.

    Or it is possible that your CSS code has been overridden by the theme or another plugin style.

    in reply to: Hide Title column from front end submission #32700
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use this filter code to change the welcome message

    add_filter( 'mbfs_welcome_message', function( $message, $user, $query ) {
        $message  = '<h3>'. esc_html( sprintf( __( 'Hello, %s!', 'mb-frontend-submission' ), $user->display_name ) ).'</h3>';
        $message .= '<p>'. esc_html( sprintf( __( 'You have %d %s.', 'mb-frontend-submission' ), $query->post_count, strtolower( $query->query['post_type'] ) ) ).'</p>';
    
        return $message;
    }, 10, 3 );

    Regarding the redirect code above, you need to replace my-id and field_id with your meta box ID, field ID to make it works.

    in reply to: Issues with custom posts / fields migration #32693
    Long NguyenLong Nguyen
    Moderator

    Hi,

    In case of using Oxygen Builder, please reach to them if you have any issues with installation, configuration, compatibility, or usage.

    Refer to our support policy https://support.metabox.io/topic/support-policy/

    in reply to: Group info on a page disappears after migration #32692
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you still keep the staging site, you can access your database and check the value of the group in the staging and live site. It is possible that the group value is lost after migrating.

    in reply to: Hide Title column from front end submission #32691
    Long NguyenLong Nguyen
    Moderator

    Hi Paul,

    You can use the attribute columns to remove the column title from the frontend dashboard. For example

    [mb_frontend_dashboard edit_page="6" columns="date,status"]
    

    Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#user-posts-dashboard

    If you are not familiar with coding, you can use a third-party plugin to limit posts per user.
    https://wordpress.org/plugins/user-posts-limit/

    in reply to: Pull Related Term Details #32682
    Long NguyenLong Nguyen
    Moderator

    Hi,

    What is the kind of review? A post or a description of the term?

    If it is a post type, you can use the extension MB Relationships to set the connection between review and movie/game and show the connected reviews on the frontend.
    https://docs.metabox.io/extensions/mb-relationships/

    in reply to: Custom Model - Hook into object deletion #32676
    Long NguyenLong Nguyen
    Moderator

    Hi Will,

    Currently, there is no action hook before/after the delete function is executed. I will inform the development team to consider adding a hook to those functions.

    in reply to: MetaBox Relationships not showing in menu #32673
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please update Meta Box to the new version 5.5.1 to resolve this issue.

    in reply to: Sync product attribute to custom field #32672
    Long NguyenLong Nguyen
    Moderator

    Hi Roderick,

    The product attribute works as a taxonomy/term but WooCommerce uses their function on the product information box to set the attribute and show its value on the frontend. In short, it is not possible to set the product attribute by using Meta Box.

    in reply to: How to migrate custom post data from Toolset to MetaBox? #32668
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for reaching out.

    We have a lot of feature requests on the Public Roadmap and it will take time to do. Our developers are working tirelessly and hope it will be available soon.

    in reply to: Invalid argument supplied for foreach: Warning #32665
    Long NguyenLong Nguyen
    Moderator

    Here you go https://www.loom.com/share/4e3e277783ee4ebfb401f5857bb554f1

    No error shows up.

    in reply to: Save Meta when custom Taxonomy Saves #32658
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Yes. The Meta Box helper function rwmb_set_meta() or WordPress function update_term_meta() helps you to update the value in the database. It does not relate to Meta Box or other plugins which create the custom field.

    in reply to: Make CPT Private by default #32657
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use a custom code to set the post status to private when creating/updating a post. For example

    function force_type_private( $post ) {
        if ($post['post_type'] == 'my_post_type')
        $post['post_status'] = 'private';
        return $post;
    }
    add_filter( 'wp_insert_post_data', 'force_type_private' );

    https://wordpress.org/support/article/post-status/

Viewing 15 posts - 1,846 through 1,860 (of 4,839 total)