Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
We've fixed this issue on new commits, you can check it while waiting for the next release.
https://github.com/wpmetabox/meta-box/archive/master.zipThank you.
Long Nguyen
ModeratorHi Toni,
The function in the file functions.php should return something to use in View. Such as:
function return_a_value() { return 'testing'; }Then use in View via proxy
{% set value = mb.return_a_value() %}.Long Nguyen
ModeratorHi,
Currently, the plugin Admin Columns only supports sorting users and terms
'sort' => true. The setting searchable and filterable is on our roadmap, we are researching and working on it. It will be wrapped in the next update as soon as possible.Thank you.
Long Nguyen
ModeratorHi 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/.
Long Nguyen
ModeratorHi,
The field
imageas the same as fieldimage_uploadso please use the fieldimage_uploadinstead ofimage. I'm going to discuss with the developer team to cover this case.
https://docs.metabox.io/fields/image-upload/Thank you.
Long Nguyen
ModeratorHi,
Thank you. I will pass this issue to the developer team to investigate further and let you know if there is any information.
Long Nguyen
ModeratorHi,
I've double-checked on my demo site but not see this issue, you can also check in URLs.
http://metabox.nguyenthanhlong.info/frontend-submit/
http://metabox.nguyenthanhlong.info/frontend-submit-noajax/Long Nguyen
ModeratorHi David,
Please deactivate all plugins except Meta Box, Meta Box extensions, and switch to the default theme of WordPress (Twenty Twenty) then submitting post again with two case: no Ajax and Ajax.
Let me know how it goes.
Long Nguyen
ModeratorHi,
You can add a
<br>tag after showing each field value to break it in a new line, just like{% for clone in post.group %} {{ clone.fieldID }} <br> {% endfor %}September 18, 2020 at 9:05 AM in reply to: ✅Need help with displaying text field on woocommerce product category page #21931Long Nguyen
ModeratorHi,
This CSS code (admin area) would help you to show the term meta box first, above the default form.
.taxonomy-product_cat form#edittag { display: flex; flex-wrap: wrap; } .taxonomy-product_cat form#edittag .rwmb-meta-box { order: -1 }Apply the admin CSS code with this plugin https://wordpress.org/plugins/admin-css-mu/.
September 18, 2020 at 7:40 AM in reply to: ✅Helper function only returning single result from checkbox list #21930Long Nguyen
ModeratorHi Will,
Please share the code that you've used to create the checkbox list and get/show the field value. I will make a test on my local site.
September 17, 2020 at 11:17 PM in reply to: ✅Need help with displaying text field on woocommerce product category page #21925Long Nguyen
ModeratorHi,
To get field value from terms, we have to use this format.
rwmb_meta( $field_id, array( 'object_type' => 'term' ), $term_id )Also, this action hook does not accept any arguments so you should remove 3 after 13. The code should be:
//Function to dispay the field on the product-category page add_action( 'woocommerce_after_shop_loop', 'product_category_intro', 13 ); function product_category_intro() { $term_id = get_queried_object_id(); $value = rwmb_meta( 'textarea_1jtphdq0vy', array( 'object_type' => 'term' ), $term_id ); echo $value; }For more information, please follow this documentation https://docs.metabox.io/extensions/mb-term-meta/#getting-field-value.
September 17, 2020 at 10:43 PM in reply to: ✅Helper function only returning single result from checkbox list #21923Long Nguyen
ModeratorHi,
Using the helper function for this field always returns an array so you need to loop through it to show the value. Please follow this documentation https://docs.metabox.io/fields/checkbox-list/#template-usage.
Long Nguyen
ModeratorHi,
The field
numberonly accepts the raw number (not formatted) such as 100000. You should use the fieldtextas I reply above or use a third-party plugin as Anh Tran said to show the number formatted.September 17, 2020 at 11:21 AM in reply to: ✅Beaver Themer Integrator causes fatal PHP error, making website non-functional #21917Long Nguyen
ModeratorHi,
The plugin Custom Post Type Permalinks might help you to create a custom permalink for specific post types https://wordpress.org/plugins/custom-post-type-permalinks/.
You can also follow this topic to do by coding https://wordpress.stackexchange.com/questions/216337/change-permalink-structure-for-custom-post-type.
-
AuthorPosts