Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Sorry for the late reply, there are so many tickets on our system for the past few days.
Using the unpkg link is not violate GDPR compliance if you have a notice that what data you collect from the user/visitor (what do you think about GDPR concern if you use Google Analytic link on your site?). Besides that unpkg is using Cloudflare to deliver the package via CDN and Cloudflare rule is very strict about GDPR compliance so you don't worry about that.
January 3, 2023 at 10:38 PM in reply to: ✅Shortcodes (from other plugins) not rendering in Metabox fields #40108Peter
ModeratorHello there,
If you want to render the shortcode added to the WYSIWYG field value, please use the PHP code
echo do_shortcode( $field_value );Read more on the documentation https://docs.metabox.io/fields/wysiwyg/#template-usage
Peter
ModeratorHello,
Unfortunately, there is no feature or option of the Meta Box plugin that supports this case. You need to create some custom JS code on your own to do that.
Peter
ModeratorHello,
Please make sure you have the latest version of MB User Profile 2.1.0 then follow the documentation to know how to overwrite the templates of the plugin by using the templates in the theme folder.
https://docs.metabox.io/extensions/mb-user-profile/#email-templatesJanuary 3, 2023 at 10:20 PM in reply to: MB geolocation google address autocomplete not working with conditional logic #40104Peter
ModeratorHello,
Can you please export the field group to a JSON file? I will try to import it to my demo site and try to investigate the issue.
Please read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importPeter
ModeratorHello,
Currently, there is no option or filter hook to change the cookie expiration. I will inform the development team to consider supporting a filter hook to change this.
Thanks.
Peter
ModeratorHello,
Please use the Dot or JSON notation to pass the array to a setting in the builder. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#dot-notation
Peter
ModeratorHello Jo,
To use the sanitize callback, please read more on the documentation https://docs.metabox.io/sanitization/#custom-sanitize-callback
The callback function will look like this
function formatage_prix( $value, $field, $old_value, $object_id ) { // French notation $value = number_format( $value, 2, ',', ' ' ); // use $value to get the field value return $value; // and return the field value after formatting }Peter
ModeratorHello,
Thank you for your feedback.
Do you mean to add a border around the field and the background of the field label to separate them? I will inform the development team to consider improving the UI of custom fields in future updates.
Peter
ModeratorHello,
The MB Conditional Logic extension does not support populating a field value based on another field value. It only helps to show/hide a field (or an element) based on another field value.
Peter
ModeratorHello,
You can try to use this code
add_filter( 'generateblocks_query_loop_args', function( $query_args, $attributes ) { if ( ! is_admin() && ! empty( $attributes['className'] ) && strpos( $attributes['className'], 'only-provider-events' ) !== false ) { return array_merge( $query_args, array( 'relationship' => [ 'id' => 'event_to_provider', // Pass your relationship ID 'to' => get_the_ID(), // You can pass object ID or full object ], ) ); } return $query_args; }, 10, 2 );If it does not work, please generate the relationship to the PHP code and share it here. I will help you to check this.
January 2, 2023 at 7:09 PM in reply to: Return all posts with related posts that have specific meta value #40089Peter
ModeratorDecember 30, 2022 at 11:27 PM in reply to: MB geolocation google address autocomplete not working with conditional logic #40075Peter
ModeratorHello,
I do not see a field with the address ID in your code as instructed in the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#address-field
Also, the geo type should be an array of values, for example:
'types' => ['geocode'],Can you please check recheck this?
December 30, 2022 at 11:17 PM in reply to: Return all posts with related posts that have specific meta value #40073Peter
ModeratorHello Brian,
I think it is possible. You can try to create 2 queries to do that:
- Query to get Band posts that have the Jazz genre meta value
- Inside the query to get Band posts, create another query to get Event posts related to the Band.Please read more on the documentation
https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
https://docs.metabox.io/extensions/mb-relationships/#postsPeter
ModeratorHello,
Can you please share the code that you create the query to display Event posts? Did you try to add the parameter
relationshipas in the documentation below to the query?
https://docs.metabox.io/extensions/mb-relationships/#posts -
AuthorPosts