Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi 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.
December 2, 2018 at 11:51 AM in reply to: ✅Cloning Groups of Fields on Backend (WP Admin Dashboard) #12433Anh Tran
KeymasterAh, 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.
Anh Tran
KeymasterHi,
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.
Anh Tran
KeymasterHi, you can do that pretty easy with
$wpdb:global $wpdb; $wpdb->update( 'your_table', array( 'field_1' => 'value_1', 'field_2' => 'value_2' ) );Anh Tran
KeymasterHi Neil,
You're right. Until now, the group is not supported yet. I'll work on that later.
Anh Tran
KeymasterYes, it's possible, but in the MB Include Exclude extension. Please see the docs for the details.
November 30, 2018 at 4:41 PM in reply to: ✅Cloning Groups of Fields on Backend (WP Admin Dashboard) #12390Anh Tran
KeymasterWell, 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:
November 30, 2018 at 4:38 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #12389Anh Tran
KeymasterHi Jacob,
I think
array( 'medium', 'in', array( 'buch' ))should work fortaxonomy_advanced. Would you mind posting the code of meta box here for testing?Anh Tran
KeymasterHi,
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.
Anh Tran
KeymasterHi 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.
November 30, 2018 at 4:31 PM in reply to: ✅metabox removes multiple text field with html links inside #12386November 29, 2018 at 5:44 PM in reply to: ✅metabox removes multiple text field with html links inside #12358Anh Tran
KeymasterHi Gunvor, I've just tried your code and seen the problem. I'll fix it soon.
Anh Tran
KeymasterHi Neil,
The
telinput still allows to enter text. In order to force a format, please add another custom attribute with namepatternand 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.Anh Tran
KeymasterHello, 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.
Anh Tran
KeymasterHi 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_idto 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>"; } ); -
AuthorPosts