Forum Replies Created
-
AuthorPosts
-
October 8, 2020 at 9:20 AM in reply to: ✅Problem with MB Frontend Submission and wp multisite #22322
Long Nguyen
ModeratorHi,
With the administrator user, I'm able to upload the image via Frontend Submission without any problem. See my screen record https://www.loom.com/share/57d791f3ad2c4391b264777dc3eca8a6.
Please try to clear the cache, use the incognito mode of the browser, and upload another image again.
Long Nguyen
ModeratorHi,
Please follow this guide to know how to create the staging site https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/.
Then share the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
Long Nguyen
ModeratorHi,
Please deactivate all plugin except Meta Box and MB Group, switch to the default theme of WordPress (Twenty Twenty), add only code to show the group field, and check this issue again.
Let me know how it goes.
Long Nguyen
ModeratorHi,
The function rwmb_set_meta() helps you to set a field value and save to the database, so the third argument must be a number, string, or serialized string.
The code should be:
add_action( 'init', function() { rwmb_set_meta($speaker_id,'mail_key_onboarding_1','string_or_number',array('object_type' => 'user')); }, 99 );For more information, please follow the documentation.
https://docs.metabox.io/database/
https://codex.wordpress.org/Database_DescriptionOctober 7, 2020 at 1:47 PM in reply to: ✅MB Custom Post Types and Custom Taxonomies 2.0.1 deleted some CPT and taxonomies #22312Long Nguyen
ModeratorHi Max,
Please update this extension to v2.0.3 then force migrate again to fix the issue on that sites.
Long Nguyen
ModeratorHi Jason,
We are working to cover this case, please use the HTML validation to validate sub-fields inside the cloneable group.
array ( 'id' => $prefix . 'experience', 'type' => 'group', 'name' => esc_html__( 'Employment History', 'zri-domain' ), 'fields' => array( array ( 'id' => $prefix . 'start-date', 'type' => 'date', 'name' => esc_html__( 'Start Date', 'zri-domain' ), 'js_options' => array( 'dateFormat' => 'mm/dd/yy', ), 'required' => true //This ), array ( 'id' => $prefix . 'end-date', 'type' => 'date', 'name' => esc_html__( 'End Date', 'zri-domain' ), 'js_options' => array( 'dateFormat' => 'mm/dd/yy', ), 'required' => true //This ) ), 'clone' => 1, 'default_state' => 'expanded', 'add_button' => esc_html__( '+ Add Employment', 'zri-domain' ), 'collapsible' => true, 'group_title' => 'Employment {#}', )October 5, 2020 at 10:44 PM in reply to: ✅Problem with MB Frontend Submission and wp multisite #22298Long Nguyen
ModeratorHi,
Have you added the code to add the capability to a user role? If yes, please share the code. Also, please follow this guide to know how to create the staging site https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/.
Then share the credentials (Admin site and FTP account) via this form https://metabox.io/contact/. I will check it out.
October 5, 2020 at 5:07 PM in reply to: ✅MB Custom Post Types and Custom Taxonomies 2.0.1 deleted some CPT and taxonomies #22296Long Nguyen
ModeratorHi,
Please update the new version of this extension to v2.0.2 then add the param
mbcpt-force=1to the URL and run it to force migrate post types and taxonomies to the new version. Example: http://domain.com/wp-admin/?mbcpt-force=1October 5, 2020 at 10:24 AM in reply to: ✅Problem with MB Frontend Submission and wp multisite #22287Long Nguyen
ModeratorHi,
Some fields use the WordPress Media Library (popup) to upload images and need a high level of the user to access the media library. You can use the field
imageto allow the user to upload images without using the media library.For more information, please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#upload-files--images-with-the-media-popup.
Long Nguyen
ModeratorHi,
Please try to deactivate all plugins except Meta Box, Meta Box extensions, switch to the default theme of WordPress (Twenty Twenty), and clear the cache then check this issue again.
Let me know how it goes.
October 3, 2020 at 9:24 AM in reply to: ✅MB Custom Post Types and Custom Taxonomies 2.0.1 deleted some CPT and taxonomies #22233Long Nguyen
ModeratorHi Max,
Please share the staging admin site account via this form https://metabox.io/contact/, I will take a closer look and give a quick response.
Long Nguyen
ModeratorHi there,
The extension MB Block has not supported to transform a block to other types yet. I'm going to create a feature request for the developer team to support transforming block in the future update.
Thank you.
Long Nguyen
ModeratorHi,
I've tried to reproduce this issue on my local site but it still works as well. The space before and after the variable always shows. You can also try to use the HTML entity of space
, just liketext {{ variable }}.
https://www.w3schools.com/html/html_entities.aspSeptember 30, 2020 at 9:58 PM in reply to: ✅Trying to run code in a plugin only if a checkbox is ticked #22213Long Nguyen
ModeratorHi Sridhar,
You are right, before clicking the button Save Settings, the fields' value is not saved to the database so the helper function
rwmb_meta()always returns anullvalue.If you want to set the field
kn_checkbox_kadencechecked as default, please try to use this code:add_action( 'admin_init', function() { if( get_option( 'kadence_navigator' ) !== null ) { $options = array( 'kn_checkbox_kadence' => 1 ); update_option( 'kadence_navigator', $options ); } } );Long Nguyen
ModeratorHi,
Because the field file_advanced always returns an array when retrieving so we have to loop through the array to get items information. Here is the sample code:
{% for item in user.downloaded_files %} {{ item.title }} {% endfor %}You can also click to Insert Field > Users > Custom Fields > File Advanced, to generate the code automatically. See https://share.getcloudapp.com/OAuJEWm1.
For more information, please follow the documentation https://docs.metabox.io/fields/file-advanced/#template-usage.
-
AuthorPosts