Forum Replies Created
-
AuthorPosts
-
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.
Anh Tran
KeymasterOh, that's a nice idea. Let me try it.
Anh Tran
KeymasterI've checked on your site and I see you created a field with ID
post_title. But as it's a field in a meta box, it can't be a post field.To add post field, you need to change the shortcode to:
[mb_frontend_form id="dominantgegevens,diensten" post_fields="title"]And the template for post title now works.
Just a note: post fields (such as post title, editor, thumbnail, etc.) are not part of meta boxes, so you can't wrap it in tabs. They will appear above the tabs.
Here is the screenshot of the page:
Anh Tran
KeymasterHello,
You can add tooltip via Custom Attributes. Please go to Advanced tab, click "+ Attribute" button under Custom Attributes and add key = 'tooltip', value = tooltip text. If you want to use a custom icon for tooltip, add 3 attributes:
- Key: tooltip.icon, value: dashicon icon or URL of the icon. See list of dashicons here https://developer.wordpress.org/resource/dashicons/
- Key: tooltip.content, value: the content of the tooltip
- Key: tooltip.position, value: left|right|top|bottom (one of them) to specify the position of the tooltip. It's optional.
Please try it and let me know if you need any help further.
Anh Tran
KeymasterIn the Builder, please select the “HTML image” field.
Anh Tran
KeymasterYes, please send me a temporary account to [email protected]. I’ll check it.
-
AuthorPosts