Forum Replies Created
-
AuthorPosts
-
Truong Giang
ParticipantHi there,
Sorry about this. There are some problems so we can't send you the hotfix. You can use image_advanced field and add
upload_filescapability for users. The code below add that cap for subscriber:/** * Allow the media uploader work on specific pages */ function mb_allow_contributor_uploads() { if ( is_admin() ) { return; } $path = isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : ''; if ( ! $path || '/page-slug' != $path ) { return; } /** * Replace 'subscriber' with the required role to update, can also be contributor */ $subscriber = get_role( 'subscriber' ); // This is the only cap needed to upload files. $subscriber->add_cap( 'upload_files' ); } add_action( 'init', 'mb_allow_contributor_uploads' );Truong Giang
ParticipantHi there,
Can you give me your email address? I will give you a quick fix version. This version works if the image field is in level 1 of group (like your case).
Thank you.
Truong Giang
ParticipantHi there,
You can use something like this:<div class="anyclass"> [rwmb_meta meta_key="text_6" type="text"] </div>Truong Giang
ParticipantHi there,
Can you give me the code you use to register meta box?
Truong Giang
ParticipantWhich version of MB Custom Post Type are you using? I tried your scenario but it works. Can you share your credential for us to check it? If you can, please send the WordPress admin credential to [email protected]
Thank you very much.
UPDATE: Sorry. I got the problem. Please wait for me to fix it.
Truong Giang
ParticipantHi,
I got the problem. We are fixing it ASAP.
Thank you.
Truong Giang
ParticipantHi there,
Do you use latest version of MB Custom Post Type? There is something wrong here. It's should be
add_action( 'init', 'your_prefix_register_taxonomy', 0 );instead ofadd_action( 'init', 'your_prefix_register_taxonomy');I used the code you give but I didn't see any errors.
Truong Giang
ParticipantHi,
Thank you for your report. We will consider this problem in the future. ID of field in clonable group is dynamic, so we can't use old mechanism. This is a hard part.
Thank you very much.
Truong Giang
ParticipantOh so sorry, I have a mistake. Please try the code below:
<a href='[rwmb_meta meta_key="url_1"]'>[rwmb_meta meta_key="url_1"]</a>And you should switch the editor to text mode instead of visual mode.
Truong Giang
ParticipantHi,
You can insert this to widget:
<a href="[rwmb_meta meta_key="url_1" ]">[rwmb_meta meta_key="url_1" ]</a>Thank you.
Truong Giang
ParticipantHi,
Sorry because current version of MB Group only supports HTML5 validation via attributes when clone. Please use it if possible.
Thanks.
Truong Giang
ParticipantHi there,
Do you means https://metabox.io/ instead of https://metabox.io/?
You can use this code:
echo make_clickable( do_shortcode( '[rwmb_meta meta_key="url_1" ]' ) );Thank you.
Truong Giang
ParticipantHi there,
You can add it to field config array which you want to use Yoast Seo functionality:
$meta_boxes[] = array( 'title' => __( 'Test Meta Box', 'textdomain' ), 'post_types' => 'post', 'fields' => array( array( 'id' => 'name', 'name' => __( 'Name', 'textdomain' ), 'type' => 'text', 'add_to_wpseo_analysis' => true, ), array( 'id' => 'gender', 'name' => __( 'Gender', 'textdomain' ), 'type' => 'radio', 'options' => array( 'm' => __( 'Male', 'textdomain' ), 'f' => __( 'Female', 'textdomain' ), ), ), array( 'id' => 'email', 'name' => __( 'Email', 'textdomain' ), 'type' => 'email', ), array( 'id' => 'bio', 'name' => __( 'Biography', 'textdomain' ), 'type' => 'textarea', ), ), );August 15, 2017 at 11:15 AM in reply to: Image upload does not work with MB Frontend Submission #6641Truong Giang
ParticipantWe will discuss in the topic: https://support.metabox.io/topic/fileimage-input-field-does-not-work-when-in-group/
I'll close this topic.
Truong Giang
ParticipantHi,
Can you give me your email? I'll send you the fixed code. We still have some works with MB Group so we will update it later.
Please make sure that you are using MB Group 1.2.10 before use fixed code.UPDATE: We have just released MB Group 1.2.11. Please update it.
Thanks.
-
AuthorPosts