Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
The cloneable is set in the group level so I think you will need to use a for loop to get the group item and check the subfield value inside the loop. For example:
function list_sanitize($values){ //list - group clone foreach ( $values as $key => $value ) { $jtitle = isset( $value['jtitle'] ) ? $value['jtitle'] :[]; //title if( !empty($jtit) ){ $values[$key]['jtitle'] = sanitize_text_field($jtitle); } } return $values; }Let me know how it goes.
December 5, 2022 at 9:09 PM in reply to: ✅Populate Custom Field with Another Custom Field's Data #39506Peter
ModeratorHello,
If you want to output the date in human-readable format, you can use the setting
save_formatwhich uses the PHP format for the date. For example:[ 'name' => __( 'Date', 'your-text-domain' ), 'id' => $prefix . 'date', 'type' => 'date', 'save_format' => 'F, j Y', 'js_options' => [ 'dateFormat' => 'dd-mm-yy', ], ],Read more on the documentation https://docs.metabox.io/fields/date/
If you want to set a field value, please follow this documentation https://docs.metabox.io/functions/rwmb-set-meta/
Peter
ModeratorHello there,
When outputting the field value with code, you can use the WordPress function wp_trim_words() to trim text to a certain number of words or use the PHP function substr() to return a number of characters.
Read more on the documentation https://docs.metabox.io/fields/wysiwyg/#template-usage
If you use the Oxygen builder, you can contact their support to get further assistance.
December 5, 2022 at 8:43 PM in reply to: ✅Custom queries while using Breakdance causing a TWIG issue #39504Peter
ModeratorThis issue has been resolved in the new version of MB Views and Meta Box AIO.
Let me know if you need anything further.Peter
ModeratorHello Denise,
Thanks for your feedback.
Please make sure that you have the latest version of Meta Box AIO v1.16.6. If the issue still happens, please let me know how to reproduce the issue on my side.
Peter
ModeratorHello Patrick,
Customizing the permalink settings is beyond the scope support of Meta Box. You can try to go to Settings > Permalinks > Custom structure > and set it to
/%category%/%postname%/.Or follow this article to customize the permalink with coding https://stackoverflow.com/questions/57765487/how-to-add-custom-taxonomy-in-custom-post-type-permalink
December 4, 2022 at 11:33 PM in reply to: ✅Bigger thumbnail for featured image of related post id #39490Peter
ModeratorHello Eddy,
You are using the function
get_the_post_thumbnail()to get the post thumbnail, so please read more on WordPress documentation to know how to get other thumbnails https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/{{ mb.get_the_post_thumbnail( post.related_product_id, 'large' ) }}Peter
ModeratorHello Eddy,
You can use remote validation to check the validation of a word (name). Using the regex PHP is a way to check "contains" match, please read more on the documentation
https://www.w3schools.com/php/php_regex.asp
https://docs.metabox.io/validation/#remote-validationNote: we do not support customization code so if you cannot complete the code, please hire an expert developer to help you in this case.
December 4, 2022 at 11:07 PM in reply to: ✅WPML "image advanced" in translated pages not visible #39488Peter
ModeratorHello there,
Supporting an issue with the translatble of a field is beyond our scope of support. I'm not sure if WPML can work with MB Group to translate or not translate subfields in a group, please contact WPML support to get further assistance.
I also find some WPML documentation that might help you to not translate custom fields or subfields on your site. Please get it here
https://wpml.org/documentation/support/language-configuration-files/#2-1-translating-sub-keys-in-custom-fields
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/December 4, 2022 at 10:57 PM in reply to: How to insert custom fields with a dropdown selection? #39487Peter
ModeratorHello,
So what will display in the checklist? The custom field value from all companies? Can you please create a diagram or specific example for your requirements?
Please notice that, the custom fields are associated with the post. You should not use a field value of a post for another post like that.
Peter
ModeratorHello,
So if you only add the code to output the field value, does it display the correct field value?
$number = rwmb_meta( 'my-custom-field-id' ); echo $number;If not, you can try to pass the post ID to the helper function to get the field value of a specific post.
$number = rwmb_meta( 'my-custom-field-id', '', 123 );where 123 is the post ID. Please read more on the documentation https://docs.metabox.io/functions/rwmb-meta/
December 4, 2022 at 10:36 PM in reply to: Profile pages using MB User Profile and MB Beaver Builder Integration #39485Peter
ModeratorHello Jan,
1. To display fields side by side, you can use the extension MB Columns, please read more on the documentation https://docs.metabox.io/extensions/meta-box-columns/
2. I think it is not difficult with some CSS code, you can contact your developer to ask for help with this issue.Peter
ModeratorHello,
1. I'm trying to explain the Meta Box feature and let you know how it works and what it would display on the frontend. If you want to style your data with some custom div and CSS code, just do it on your own.
2. Can you please share some screenshots (full screen) of
- Custom fields
- Card (post)
- Custom fields value add to the cardPeter
ModeratorHello Mariano,
Meta Box supports an extension that helps you to create and edit posts on the frontend. Please read more here https://docs.metabox.io/extensions/mb-frontend-submission/
But it does not support a search form to search posts. You can follow the articles below to create a search form with coding https://metabox.io/?s=search&post_type=post
Peter
ModeratorHello,
Can you please generate the PHP code and share it with me? If you are using the MB Builder, please read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
You can also try to deactivate all plugins and leave only Meta Box and Meta Box extensions activated to check this issue again.
-
AuthorPosts