Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Jorge,
To get the current logged-in user, you have to use the code. The shortcode does not support an attribute to get the current logged-in user. Please refer to this topic https://support.metabox.io/topic/how-can-i-output-a-group-field-for-current-users/#post-35544
Peter
ModeratorHello Ole,
Thank you for following up.
1. I do not see a way to set up OSM field to use a custom tiles server. The data is fetched from OSM server https://nominatim.openstreetmap.org/
2. You can dequeue script and CSS files (name leaflet) then re-enqueue them with your local files. But I'm not sure if the OSM map works properly then.
Please read more on the documentation
https://developer.wordpress.org/reference/functions/wp_dequeue_style/
https://developer.wordpress.org/reference/functions/wp_dequeue_script/Peter
ModeratorHello Keith,
If the canonical URL field of All-in-one SEO saved value to the database as a custom field, then you can use the form hook to update the field value by using the WordPress function
update_post_meta().Please get more details on the documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks
https://developer.wordpress.org/reference/functions/update_post_meta/Peter
ModeratorHello,
This issue has been fixed in this commit https://github.com/wpmetabox/meta-box/commit/179992c4f4ae2a1dcbf9b41db05f4caee5d1e068
Please update Meta Box to the latest version 5.6.11 to fix the issue. Thanks.
December 5, 2022 at 11:12 PM in reply to: Profile pages using MB User Profile and MB Beaver Builder Integration #39515Peter
ModeratorHello Jan,
Sorry about the live session, it is also beyond our scope of support. I recommend contacting our Key Master Anh Tran if he allows providing this kind of support. Thanks for your understanding and patience.
Regarding the issue "then the information does not pull through onto the profile page", I see you've confirmed it works above. Does it not work for now?December 5, 2022 at 11:05 PM in reply to: How to insert custom fields with a dropdown selection? #39514Peter
ModeratorHello,
Thanks for your details. I understand the requirements.
So in this case, you can use the field post or use the extension MB Relationships to display a list of vendors when editing a wedding. Then based on the vendor (post) ID, you can get the field value (vendor_name) of the vendor and display it on the wedding post (frontend).
Please read more on the documentation https://docs.metabox.io/fields/post/#data
https://docs.metabox.io/extensions/mb-relationships/If you are not familiar with coding, you can create a customization service request with an extra fee, our development team will help you to do that. Please submit the request here https://metabox.io/contact/
December 5, 2022 at 9:42 PM in reply to: Taxonomy filterable dropdown selection without adding metabox to edit screen? #39510Peter
ModeratorHello,
The feature filterable is applied to the field
taxonomyonly. If you want to display 1 meta box for the taxonomy on the editing post, please follow these steps:
- when creating the custom taxonomy > Advanced tab > Disable option "Show on edit page"
- create a custom fieldtaxonomy> make it displays in the admin column and enable the option Filterable.Read more on the documentation
https://docs.metabox.io/extensions/mb-admin-columns/#3-advanced-configurationPeter
ModeratorHello Jorge,
To display the user meta field with shortcode, you need to add the attribute
object_type="user"to the shortcode. For example:[rwmb_meta id="phone_field" object_id="15" object_type="user"]where 15 is the user ID, not the post ID of the field group. Please read more on the documentation https://docs.metabox.io/extensions/mb-user-meta/#getting-field-value
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' ) }} -
AuthorPosts