Support Forum
Support › Meta Box Builder › Vertical Button GroupResolved
Hi,
How could I display the button group vertically and with each button 100% width?
Hi Jason,
When editing the field group, please click on the tab Code to generate the code of fields, copy and paste to the file functions.php in the theme folder and add the field setting 'inline' => false
, just like:
'fields' => [
[
'id' => $prefix . 'button_group_i22kty8c5ie',
'name' => esc_html__( 'Button Group', 'text-domain' ),
'type' => 'button_group',
'options' => [
1 => esc_html__( '1', 'text-domain' ),
2 => esc_html__( '2', 'text-domain' ),
3 => esc_html__( '3', 'text-domain' ),
],
'inline' => false
],
],
To increase the button width, you can use this custom CSS code with the plugin Admin CSS MU to apply the code in the admin area.
.rwmb-button_group-wrapper .rwmb-button-input-list label {
width: 90%;
text-align: center;
}
It looks like https://share.getcloudapp.com/E0unxBnQ.
For more information, please follow this documentation https://docs.metabox.io/fields/button-group/.
Excellent, thank you Long.
Ok that's sorted.
Now to views, I cannot get anything other than the post title to display. How to display a simple field value?
Also, when editing custom fields and saving it clears everything and doesn't save anything, every time.
With ACF there is Calculated fields for ACF, which I rely on. There is no such feature for Metabox.
And the last showstopping issue is that it's not compatible with Oxygen builder, which is my main tool, so I would like to ask for a refund please. I would have sent it through support but your support form is not functioning correctly.
Regards,
Jason
Hi Jason,
>> Now to views, I cannot get anything other than the post title to display. How to display a simple field value?
Please follow this video tutorial to know how to get other post fields to display in the view. https://docs.metabox.io/extensions/mb-views/#video-tutorial
>> Also, when editing custom fields and saving it clears everything and doesn’t save anything, every time.
Could you please share the code which creates custom fields? And take some screenshots of this issue.
>> With ACF there is Calculated fields for ACF, which I rely on. There is no such feature for Metabox.
We haven't support a field like Caculate field yet but you can easily get the field value with the helper function rwmb_meta() or get the field value in View and use operators +-*/ to show the total value.
>> it’s not compatible with Oxygen builder
The plugin Meta Box is compatible with the Oxygen builder to show the custom field value on the frontend, please take a look on this screen record.
https://www.loom.com/share/6661c86244f045d1ba3f21c7615f5792
Let me know if you have any questions.
Without metabox: https://streamable.com/7rljwd
With: https://streamable.com/5155ez
I would still like a refund by the way, there is a bit too much manual work to do for almost everything, I thought buying the tool would replace that. Also the views does not work for me even post title doesn't display.
And there are strange characters on the page: https://imgur.com/v0RI3zH
I’ve issued the refund for you. If you need Meta Box in the future, you’re always welcome.
Thank you, much appreciated.