Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,576 through 1,590 (of 3,702 total)
  • Author
    Posts
  • in reply to: Adding Admin Columns to CPT display #12434
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    It's the same problem as for Beaver Themer when you output a group field in the admin columns. It's not supported yet.

    when I add any values to the custom field form for my CPT “Packages” – the values dont’ save when I click Submit. so if no values are stored for my custom field that I want displayed in admin columns, will that prevent the title of the column from displaying too?

    Can you check why the fields are not saved? Without values, the column is still displayed in the table, but the column is empty. The column table is always displayed, though.

    in reply to: Cloning Groups of Fields on Backend (WP Admin Dashboard) #12433
    Anh TranAnh Tran
    Keymaster

    Ah, I got it. I think what you need is duplicate a whole group, including its sub-fields, don't you? If so, it's not supported yet. The duplicate feature is working on single-field basis.

    in reply to: Can I unistall extension #12432
    Anh TranAnh Tran
    Keymaster

    Hi,

    The data is still in the custom table when you uninstall the extension. However, the meta boxes will save new data to the post meta table when you create a new post or update an existing post.

    in reply to: API for creating/updating meta? #12394
    Anh TranAnh Tran
    Keymaster

    Hi, you can do that pretty easy with $wpdb:

    global $wpdb;
    $wpdb->update( 'your_table', array( 'field_1' => 'value_1', 'field_2' => 'value_2' ) );
    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.

    in reply to: Cloning Groups of Fields on Backend (WP Admin Dashboard) #12390
    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

    in reply to: Conditional logic does not work based on a taxonomy field #12389
    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.

    in reply to: metabox removes multiple text field with html links inside #12386
    Anh TranAnh Tran
    Keymaster

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

    in reply to: metabox removes multiple text field with html links inside #12358
    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>";
    } );
Viewing 15 posts - 1,576 through 1,590 (of 3,702 total)