Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 1,606 through 1,620 (of 3,958 total)
  • Author
    Posts
  • in reply to: Displaying Grouped MB Fields in Beaver Themer #12393
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    You're right. Until now, the group is not supported yet. I'll work on that later.

    in reply to: โœ…Show/hide metabox based on user permissions #12391
    Anh TranAnh Tran
    Keymaster

    Yes, it's possible, but in the MB Include Exclude extension. Please see the docs for the details.

    Anh TranAnh Tran
    Keymaster

    Well, the back end is more supported than the front end ๐Ÿ™‚ So, all you need to do is tick this checkbox for group in the Builder:

    https://imgur.elightup.com/CdTAmtX.png

    Anh TranAnh Tran
    Keymaster

    Hi Jacob,

    I think array( 'medium', 'in', array( 'buch' )) should work for taxonomy_advanced. Would you mind posting the code of meta box here for testing?

    in reply to: Fields with array in id not being saved #12388
    Anh TranAnh Tran
    Keymaster

    Hi,

    To use array in ID, it's better to use the MB Group. This issue is not only about the HTML output, but also the data saved in the database. I guess you want an array of values, so Group is exactly that.

    in reply to: โœ…Creating New Post Type w/ Frontend Submission #12387
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    Sorry for missing this topic. The post title is inserted in the form via a shortcode attribute. It's not a field. So it won't available in the Builder. Please check the post_fields attribute.

    Anh TranAnh Tran
    Keymaster

    Hi, I've just fixed this bug on Github. New version is coming soon.

    Anh TranAnh Tran
    Keymaster

    Hi Gunvor, I've just tried your code and seen the problem. I'll fix it soon.

    in reply to: โœ…Creating Custom Field - Telephone #12357
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    The tel input still allows to enter text. In order to force a format, please add another custom attribute with name pattern and value like [0-9]{3}-[0-9]{3}-[0-9]{4} (123-456-7890). Then the plugin will use that pattern as a validator for data entered.

    Please note that the value is a regular expression, where [0-9] means only numbers, {3} means only 3 times. For more info, please read this guide.

    in reply to: โœ…Date formatting #12356
    Anh TranAnh Tran
    Keymaster

    Hello, it's not possible yet. We're working on the date formats for Meta Box. When it's done, it will be shipped to the Admin Columns.

    in reply to: โœ…Creating Complex User Forms #12355
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    #1. I'm afraid there's no pagination supported at the moment. But I think you can use the MB Tabs to organize the fields into tabs, so not many fields are displayed to users at once.

    #2. Yes, that's doable. Firstly, you need to create an archive page for your packages. It's like a custom post type archive in WordPress, so no big deal.

    Secondly, create a "Edit" page, where you insert the shortcode [mb_frontend_form] to edit a package.

    Finally, add a link to the "Edit" page in packages. To make the "Edit" page understands the package, you can pass the post_id to its URL. So, I'd like to use a filter to auto insert the link to package's post content, like this:

    add_filter( 'the_content', function( $content ) {
        if ( ! is_singular( 'package' ) ) {
            return $content;
        }
        $edit_page = 123; // ID to "Edit" page
        $edit_page_link = get_permalink( $edit_page );
        $edit_link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID(), $edit_page_link );
        $content .= "<p><a href='$edit_link'>Edit package</a></p>";
    } );
    in reply to: Multiple Metabox array names #12354
    Anh TranAnh Tran
    Keymaster

    Hi Nakaiya,

    Yes, of course. But in the callback function of the rwmb_meta_boxes filter, please just use the variable $meta_boxes. It's an array of meta boxes. Each meta box has a different title.

    So, your code can be modified to this:

    add_filter( 'rwmb_meta_boxes', 'announcements_register_meta_boxes' );
    function announcements_register_meta_boxes( $meta_boxes ) {
        $prefix = 'announcements_';
        $meta_boxes[] = array(
            'id'         => 'announcements',
            'title'      => 'Announcements Meta',
            'post_types' => 'announcements',
    
            'fields' => array(
                // DATE
                array(
                    'name'       => __( 'Event Date - If nothing is entered here, the post publish date will be used', 'announcements_' ),
                    'id'         => "{$prefix}display_date",
                    'type'       => 'date',
                ),
    
            )
        );
        return $meta_boxes;
    }
    
    add_filter( 'rwmb_meta_boxes', 'register_meta_boxes' );
    function register_meta_boxes( $meta_boxes ) {
        $prefix = 'uu_';
        $meta_boxes[] = array(
            'id'         => 'uu_metabox',
            'title'      => 'My Metabox',
            'post_types' => 'post',
    
            'fields' => array(
                // DATE
                array(
                    'name'       => __( 'Event Date - If nothing is entered here, the post publish date will be used', 'announcements_' ),
                    'id'         => "{$prefix}display_date",
                    'type'       => 'date',
                ),
    
            )
        );
        return $meta_boxes;
    }
    Anh TranAnh Tran
    Keymaster

    Hi Saqib,

    I've just updated the extension to make it works with Gutenberg. However, there's some limitation in Gutenberg, it only supports the template and post_format rules. Other rules are still not supported and need to wait for update from Gutenberg. I'll update the extension when it's done.

    in reply to: โœ…exclude some posts from post query #12323
    Anh TranAnh Tran
    Keymaster

    Can you try re-save the meta box?

    in reply to: โœ…exclude some posts from post query #12320
    Anh TranAnh Tran
    Keymaster

    I forgot to change the version number on the website. Please try again.

Viewing 15 posts - 1,606 through 1,620 (of 3,958 total)