Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Neil,
The MB Relationships extension automatically creates 2 meta boxes for 2 sides of each relationship with these IDs:
{$relationship_id}_relationships_from{$relationship_id}_relationships_to
So you might need to use these IDs to include into the front-end forms to let users select a post/user to make a connection.
To display connected items in the front end, you need to code a little bit. The code is provided in the docs. As you're using Beaver Builder, I'd suggest creating a shortcode to display related items, then insert the shortcode into a text module.
Anh Tran
KeymasterHi Neil,
I've checked your site and see you're using custom table to store custom fields. However, I can't find the code that create the custom table. Maybe you missed it, and that's why the custom fields are not saved. Can you please check that again?
I've put the requests for group in my task list. Our team will work on that as soon as we can.
Update: We have resolved the issue. The problem is that the meta box uses a custom table but there's no custom table registered. Deselect the checkbox to let meta box saves to custom table fixes the bug.
December 3, 2018 at 5:17 PM in reply to: ✅metabox removes multiple text field with html links inside #12450Anh Tran
KeymasterHi Gunvor, I've tested again and couldn't see that bug. Here is my video: http://recordit.co/HdBt0F4baT
Did you try the latest code on Github?
Anh Tran
KeymasterHi, I'd recommend using FacetWP plugin or Search & Filter. We have in integration with FacetWP.
Anh Tran
KeymasterHi Hazmi, let me check that again. It supposes to work in both case.
December 2, 2018 at 12:54 PM in reply to: ✅Select_tree with attribute required true not works #12441Anh Tran
KeymasterHi Jefferson,
Does the code work when you remove that attribute completely? Setting it
falseactually doesn't do anything.December 2, 2018 at 12:50 PM in reply to: ✅Adding submenu to Metabox settings page replacing parent menu #12440Anh 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' ) ); -
AuthorPosts