Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterUnfortunately, no. It's only available for
textfield.Anh Tran
KeymasterHello,
Thanks for the link. It makes sense :).
I'll put this in the development plan :).
May 29, 2018 at 2:15 PM in reply to: if i add 0 value for select filed code not exporting values #9848Anh Tran
KeymasterThanks, I'll check that.
Anh Tran
KeymasterBut why do you want this? Because for settings, you should be an admin to make changes. And if you're an admin, it's much easier to go to Dashboard > Your Settings Page to make changes. I'm quite confused about the use case of this.
Anh Tran
KeymasterI'm afraid no. If you're using
textfield, you can select values or enter your own value using datalist. See this docs for more info:https://docs.metabox.io/fields/text/
It's not supported in Fieldset Text, though.
Anh Tran
KeymasterI'm afraid you have to do it manually. Because the plugin provides UI to users to interact, you should interact :). To shorten the time, you can just enter the Value, the Key will be automatically filled in.
Anh Tran
KeymasterHi,
Please use this snippet:
add_filter( 'rwmb_frontend_insert_post_data', function( $data, $config ) { if ( 'meta-box-id' == $config['id'] ) { $data['comment_status'] = 'closed'; } return $data; }, 10, 2 );Anh Tran
KeymasterHi,
As you're using
text_list, they'll display in a row like this:https://imgur.elightup.com/xipaodj.png
All you need to do is using simple text fields for them. Please create 3 text fields for year, berths and fixed beds. And you'll get them in a column.
Anh Tran
KeymasterHi, I've just updated the plugin to remove the debug function in the #2 error :(. Sorry about that.
Regarding the #1: you need to change the code at this line to your code that register users. If you submit multiple times, it returns the same user info and thus, WordPress will throw an error of existing username/email.
Anh Tran
KeymasterI think the way you access to
global $postis incorrect. That global object is not available when registering meta box. To get the post ID, please use this code instead:https://github.com/wpmetabox/library/blob/master/conditional-display/better-include.php#L66
Anh Tran
KeymasterHello,
I've just updated the plugin (v1.0.1) that add support for ignoring the register process and allow you to register the user by your own. Please update and see the demo code here:
Anh Tran
KeymasterOops, the Default value is missed from the Builder. I'll fix it asap. In the mean time, you can set via custom attribute. Just set the key to
stdand the value to ID of the category:https://imgur.elightup.com/8xep7GQ.png
To get the category ID, see this screenshot:
Anh Tran
KeymasterHi Dave,
Currently the Meta Box doesn't have custom CSS class and ID. Because the wrapper HTML is controlled by WordPress, the plugin can handle only the inner HTML. Can I ask what do you need it for?
Anh Tran
KeymasterHi,
To assign a fixed value to the category, use the taxonomy field. And set the default value (
stdparameter) to the category ID. Then that default value will be used when you submit the form.In order to hide the field, just add a custom CSS class to the field (like
hidden) and add this line into your theme, or in Customizer > Additional CSS:.hidden { display: none; }That's it. Please try and let me know how it goes.
Anh Tran
KeymasterHi oome,
Can you post a screenshot of non-matching style? We have tried to make all the style follow WP style.
-
AuthorPosts