Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHello,
The post title is displayed in the
post_fieldsattribute of the shortcode. Please use the MB Frontend Submission to add other fields to the form.In your situation, it sounds like changing the label for post title from "Post Title" to "Name".
So, please create a folder in your theme called
mb-frontend-submission. Inside that folder, create a sub-folder calledpost. And insidepost, create a filetitle.php, which contains the following code (don't worry, just copy and paste):<?php $title = $data->post_id ? get_post_field( 'post_title', $data->post_id ) : ''; $field = apply_filters( 'rwmb_frontend_post_title', array( 'type' => 'text', 'name' => esc_html__( 'Name', 'rwmb-frontend-submission' ), 'id' => 'post_title', 'std' => $title, ) ); $field = RWMB_Field::call( 'normalize', $field ); RWMB_Field::call( $field, 'admin_enqueue_scripts' ); RWMB_Field::call( 'show', $field, false, $data->post_id );That's it!
Please try and let me know how it works.
Anh Tran
KeymasterHello,
When you reorder meta boxes in the edit screen, the order is saved in the user meta called
meta-box-order_$posttype. So, to get that order, you need to run:$order = get_user_meta( get_current_user_id(), 'meta-box-order_yourposttype', true ); var_dump( $order );See this answer on WPSE for some other info:
Anh Tran
KeymasterHi,
This is very specific, so I think the only way to do that is via custom JavaScript.
- You listen on "change" event of the parent select
- Get the options' values you want to combine from 3 selects
- Update the list of options of a select field.
Without custom JavaScript, I can't think about another solution.
Anh Tran
KeymasterHi,
Unfortunately, the plugin hasn't supported multiple steps yet :(.
Anh Tran
KeymasterHi Dave,
I've done some work on this. I created a plugin called "MB Beaver Builder Integration" at:
https://github.com/wpmetabox/meta-box-beaver-themer-integrator
When you choose a field to connect to (like a heading field), you'll see Meta Box Field under the Posts group. And from there you can choose which field to insert. Please try and let me know how it goes.
Anh Tran
KeymasterHello,
It would be hard as the custom fields created by Meta Box needs to hook in to the
wp_insert_userto save the data. If you manually create the user, that code should happen before the form is processed. Let me see if I can provide a way to do that. Please wait.Anh
May 19, 2018 at 2:45 PM in reply to: ✅User Meta won't save when submitted through gravity forms #9600Anh Tran
KeymasterHello,
Are you using the User Registration addon? Can you please send me a copy to check it via email [email protected]? I have only a copy of the core plugin, which doesn't have the user fields.
Anh Tran
KeymasterIt's fixed now. Please try again.
May 19, 2018 at 8:24 AM in reply to: ✅Possible to get isolated address items for frontend display? #9597Anh Tran
KeymasterHello,
The address field is just a text field. While it's used to auto-suggest the map location, it acts like a normal text field. So you can just use the helper function to get its value and output it in the frontend.
May 18, 2018 at 11:54 AM in reply to: Set default value of field to another field already entered #9592Anh Tran
KeymasterHello,
This can be done with custom JavaScript. Here is the pseudo-code:
First step: enqueue your JS file:
add_action( 'rwmb_enqueue_scripts', function() { wp_enqueue_script( 'your-js-id', 'url-to-your-js', ['jquery'], '', true ); } );And in your JS file:
jQuery(function(){ var $start = $( '#start_date' ), $end = $( '#end_date' ); $start.datepicker( { onSelect: function( dateText ) { $end.val( dateText ); } } ); });May 18, 2018 at 11:48 AM in reply to: ✅User Meta won't save when submitted through gravity forms #9591Anh Tran
KeymasterHello,
To make the plugins work together, the key for user meta fields must be exactly the same. I remember Gravity Forms automatically creates key for fields which includes some numbers (the number 7 in your screenshot). I'll check more with GF. In the meantime, can you check if you can change the key for fields? It must be case-sensitive.
Anh Tran
KeymasterStrange. Let me check the update system again. Thanks for letting me know.
Anh Tran
KeymasterHi, I've just fixed the bug in the version 1.1.3. Please update and let me know how it goes.
Anh Tran
KeymasterHi Jason,
Yes, it's on the roadmap. We faced a heavy workload in the past few months, so we couldn't work on this feature. I'll try to get back to this as soon as I can.
Anh Tran
KeymasterHello, I got what you meant. Let me debug it.
-
AuthorPosts