Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi John,
Can you share the full code of the meta box and settings page to test? I can't replicate the bug on my end :(.
Anh Tran
KeymasterHi Daniel,
Currently, MB Views allows you to display videos one by one, e.g. not in a playlist. To do that, please select the video field from the inserter panel.
To display all videos in a playlist, please use this Twig snippet below:
{% set videos = mb.rwmb_meta( 'video_field_id', '', post.ID ) %} {% set video_ids = mb.implode( ',', mb.wp_list_pluck( videos, 'ID' ) ) %} {{ mb.wp_playlist_shortcode( {ids: video_ids, type: 'video'} ) }}Anh Tran
KeymasterHi,
When moving the marker on the map, only map location is updated. The address is not updated. This is the designed behavior.
In addition, the “Find address” button below the map is NOT displayed at all. No JS conflicts/errors at all.
Thanks for your feedback. We decided to remove the "Find address" button, since it's confusing to many users (the input with autocomplete already works and they don't understand the purpose of the button).
Anh Tran
KeymasterHi William,
I've just added support for alpha channel in the background field. It will be available in the next version.
Anh Tran
KeymasterHi Sofyan,
Thanks a lot for your help! I've merged your PR!
Anh Tran
KeymasterThat's awesome! Thanks for sharing with other people!
Anh Tran
KeymasterHi Han, unfortunately, we don't have that feature yet.
Anh Tran
KeymasterThanks a lot! I added a screenshot on that page, and also on field settings page.
March 23, 2020 at 10:03 AM in reply to: ✅Render OpenStreetMap for Archive/Pages (Elementor or any) #18659Anh Tran
KeymasterHi,
1) To display map for cities (one per city), you can use the
rwmb_metahelper function. If you want to display all cities on a map, please see this tutorial.2) Unfortunately, FacetWP can't filter by maps. You should make it filter by other fields (cities, wards, etc.), and the map will be displayed accordingly.
March 23, 2020 at 9:59 AM in reply to: ✅Trouble getting file url of file attachment in cloneable group #18658Anh Tran
KeymasterI got it. We forget that the returned value of the
file_advancedfield is an array! So we need to get only the first file ID.if ( isset( $file_attachment['attachment'] ) ) { $file_id = reset( $file_attachment['attachment']; // Get the first file only. $file_url = wp_get_attachment_url( $file_id ); echo '<a href="' . $file_url . '" target="_blank">' . $file_name . '</a>'; }Anh Tran
KeymasterHi Sofyan,
Thank you for your feedback. I've just fixed it.
Anh Tran
KeymasterHi John,
We updated Meta Box last year to add Ajax support for object fields, to improve the performance on sites with thousands of posts.
Can you try reinstalling Meta Box? And clear the browser cache before trying again? I think there might be something like missing files or caching of old JS files.
March 21, 2020 at 9:57 AM in reply to: ✅Trouble getting file url of file attachment in cloneable group #18623Anh Tran
KeymasterIf it outputs nothing, probably the file is already deleted from the WordPress admin (maybe someone has deleted the file in the Media Library). If that's the case, you can make a better check with this:
if ( isset( $file_attachment['attachment'] ) && get_attached_file( $file_attachment['attachment'] ) ) { $file_url = wp_get_attachment_url( $file_attachment['attachment'] ); echo '<a href="' . $file_url . '" target="_blank">' . $file_name . '</a>'; }March 21, 2020 at 9:53 AM in reply to: ✅How to extend MB Frontend Submission to anonymous posts #18622Anh Tran
KeymasterHi Jeff,
The MB Frontend Submission plugin allows users to post without requiring logging in. Please paste the shortcode in a page, and view it when you're logged out, you'll still be able to submit posts.
In case you want to assign those posts to a specific author (by default, the author is admin), you can filter to change the
post_authorparameter.Anh Tran
KeymasterHi Pieter,
Thanks for your suggestion regarding the docs. I've just updated it here.
-
AuthorPosts