Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Floris,
It's just the sample function name generated when you open the tab Code for intuition. MB Builder creates a post type
meta-boxfor each field group and saves the information of fields as post content. Then it registers the custom field base on the post content. You can read more in the filewp-content/plugins/meta-box-builder/src/Register.php.Long Nguyen
ModeratorHi,
When you delete the post from Trash, it removes the row in the custom table as well. See my screen record https://www.loom.com/share/218bb42c044045468f7355e20a3aa6f6.
You can also set KEY for another column by using the third parameter.
MB_Custom_Table_API::create( 'my_custom_table', array( 'address' => 'TEXT NOT NULL', 'phone' => 'TEXT NOT NULL', 'email' => 'VARCHAR(20) NOT NULL', ), array( 'email' ) );Long Nguyen
ModeratorHi Dries,
Suppose that you've created a post type name Product and it has slug
product. After creating a meta box with custom fields and assign to the Product post type, you need to create a template file to display the field's value on the product page.Creating a file named
single-[$custom_post_type_slug].phpand put it into your theme’s folder, in this case the file name issingle-product.php. Then use the helper function rwmb_meta() to show the field's value, follow this guide https://metabox.io/create-product-pages/ from step 3 to know how to do that.For more information on custom post type template, please follow this doc https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/.
August 5, 2020 at 8:14 AM in reply to: ✅Report a bug with this extension (MB Conditional Logic) #21127Long Nguyen
ModeratorHi,
I've checked to type something in Block editor but not see the issue. Could you please deactivate all plugin except Meta Box and MB Conditional Logic then make a screen record (with Loom) and share it? I will take a closer look and give a quick response.
August 4, 2020 at 3:16 PM in reply to: ✅Customizer Draft/Schedule Does not work with MB Settings Values #21118Long Nguyen
ModeratorHi all,
Please update the new version v2.1.2 of this extension to fix the issue.
Thank you and have a nice day.
Long Nguyen
ModeratorHi,
#1 - This issue is so weird, querying to show 10 items (even 100 items) from the database is fast to show the dropdown items in 0-1s. I'm not sure with Nginx cache and reverse proxies of that server affect the ajax request while other servers not happen.
#2 - It seems an issue with the select2 library when it makes an ajax request when opening the dropdown. Refer https://github.com/select2/select2/issues/110#issuecomment-419255510.
You can turn off the ajax request by adding this code to the field setting.
'ajax' => false
Or make a request only the user type something to the search box by following this documentation
https://docs.metabox.io/fields/taxonomy/#searching-parameters.'js_options' => array( 'minimumInputLength' => 1, // THIS ),Long Nguyen
ModeratorHi Jon,
In the loop, we can use the function get_the_ID() to get the post ID then pass it to the URL of editing form.
http://site.com/mb-frontend-submission-page/?rwmb_frontend_field_post_id=POST_IDLong Nguyen
ModeratorHi,
Let's dive a bit into the WordPress core and you will know how it stores the image information.
- Each image after uploading to the Media Library is a post with the post type
attachment. You will have the image ID and a link where the image storedhttp://your-site.com/wp-content/uploads/year/month/image-name.extension. - Meta Box image fields
image,image_advanced,image_uploadsave the ID of the image (post ID attachment) into the database. It does the same as Featured Image of WP core, save the image ID in the tablewp_postmetawith meta key_thumbnail_id.
So in your case, I think you can do some steps:
- Upload all images through Media Library.
- Create a simple custom field liketextto store the image URL.
- Modify the CSV file, change the link of the image to the formathttp://your-site.com/wp-content/uploads/year/month/image-name.extension.
- Import post meta through the CSV file with this plugin https://wordpress.org/plugins/wp-ultimate-csv-importer/.If you want to export the database to use outside of WordPress, you can use a third-party plugin to export the file. It will help you export the information you want to have in the file export.
https://wordpress.org/plugins/wp-ultimate-exporter/
https://wordpress.org/plugins/wp-all-export/Long Nguyen
ModeratorHi,
Would you mind sharing with us what your needs are? Maybe we can help you use the Meta Box and extensions to complete the project.
Long Nguyen
ModeratorHi,
By default, the object type
usershows 10 items if you want to change the number, please use the settingquery_argsMB_Relationships_API::register([ 'id' => 'att_group_host_to_user', 'from' => [ 'object_type' => 'post', 'post_type' => 'ot-att-group', 'meta_box' => [ 'title' => 'Host', 'context' => 'normal', ], ], 'to' => [ 'object_type' => 'user', 'meta_box' => [ 'title' => 'Host of Groups', 'context' => 'normal', ], 'field' => [ 'query_args' => [ 'number' => 15 // This ] ] ], ]);For more information, please follow the documentation https://docs.metabox.io/extensions/mb-relationships/#syntax.
Long Nguyen
ModeratorHi,
Could you please deactivate all plugins except Meta Box and MB extensions then check the issue again? If it still happens, please share the admin site account via this form https://metabox.io/contact/, I will take a closer look and give a quick response.
Long Nguyen
ModeratorHi all,
Please update the new version v3.3.6 of this extension to fix the issue.
Thank you and have a good day.
Long Nguyen
ModeratorHi guys,
Hotfix, please download this file and extracted https://drive.google.com/file/d/1s0XaxS9Sm4tZcR9nQZgTd1aKVhW7PVZJ/view?usp=sharing.
Then replace the folder
mbb-parserin this pathwp-content/plugins/meta-box-builder/vendor/meta-box/. The new version will be released as soon as possible to cover the issue.Long Nguyen
ModeratorHi Danielle,
It looks like you are using the meta boxes which are created by the theme. The MB Builder is located in Admin dashboard -> Meta Box -> Custom Fields, you can follow this documentation to know how to use https://docs.metabox.io/extensions/meta-box-builder/.
Could you please contact the theme's support to ask for help in this case? Let me know if there is any information.
Long Nguyen
ModeratorHi,
When the field is loaded, Meta Box only queries for saved terms (which is usually not many). So the initial query is very minimal and doesn’t cause any performance problem.That means, there are 10 items (default) loaded and ready to show on the first choice without query. After scrolling down to the bottom of the select field, it will do the next query to show more taxonomies. See my screen record to make sense.
I think the issue is the initial select2 (select advanced) when you click to the select field, please try to deactivate all plugins except Meta Box and MB extensions to check this issue again. If it still happens, I recommend using the field type
select. - Each image after uploading to the Media Library is a post with the post type
-
AuthorPosts