Forum Replies Created
-
AuthorPosts
-
December 2, 2018 at 12:50 PM in reply to: ✅Adding submenu to Metabox settings page replacing parent menu #12440
Anh Tran
KeymasterHi,
When you create a top-level settings page, make sure you create a sub-menu for the settings first. The first sub-menu will be used for the top-level menu. That's the default behavior in WordPress.
So make sure your custom page is added after all settings page (top-menu and sub-menu) are added.
Anh Tran
KeymasterHi,
I think this can be done with custom JavaScript only. So you need to enqueue a JS file, and in that file track the number of choice and show an alert when they select more.
Anh Tran
KeymasterHi Aishwarya,
All the settings are saved in a single option in the options table. You can write a code to
get_optionandupdate_optionfor your users. It's not built-in the plugin, though.Anh Tran
KeymasterHi,
Please add
post_fields="title"to the shortcode. It will tell the extension to add post title field to the form and process its value.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.
-
AuthorPosts