Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi, can you check here: https://prnt.sc/r2ky43?
Anh Tran
KeymasterHi,
The map controller (JS object, an instance of MapField) is stored in the field
data-mapController, and I think you can access to that object to perform custom triggers:var $mapField = $( '.rwmb-map-field' ); // Set specific selector to target the map you want. var controller = $mapField.data( 'mapController' ); // Then you can run var map = controller.map; google.maps.event.addListener( map, 'click', function ( event ) { controller.marker.setPosition( event.latLng ); controller.updateCoordinate( event.latLng ); } );February 15, 2020 at 9:03 AM in reply to: Settings are not saving while throwing this error in console #18293Anh Tran
KeymasterHi Akram,
If possible, can you send me a temporary admin account to check the issue? Does it cause any break in your site?
February 14, 2020 at 3:36 PM in reply to: Settings are not saving while throwing this error in console #18270Anh Tran
KeymasterHi Akram,
Can you please enable debug mode and see if there's any PHP error? And can you please take a screenshot of the console?
And please tell me how do you setup your settings page.
Anh Tran
KeymasterHi Ryan,
Yes, that's doable. You need to set the field ID to
post_authorand hook to not save it to post meta. Please see this tutorial for doing that.Anh Tran
KeymasterAh, the
post_typeparameter for the post field specify which post type it uses to get posts from.It's not the post type screen. To set the meta box appear for specific post types, you must set
post_typesparam for the meta box. Please see this docs.Anh Tran
KeymasterYou're right.
Meta boxes' IDs must be unique as they're stored in a registry with ID as key.
Fields for different post types might have the same IDs, as we also use post type as key in the field registry. Of course, unique is better.
Anh Tran
KeymasterYes, it's possible. Please see this tutorial to do that.
Anh Tran
KeymasterHi,
We don't have that condition at the moment. But you can do that with custom callback.
Anh Tran
KeymasterHi Duncan,
When you see a forever-loader icon, it might be caused by a PHP error in your template file or template render callback. Please turn on the debug mode and see if there's any error in the log.
Anh Tran
KeymasterCan you please share a screenshot?
February 12, 2020 at 9:04 PM in reply to: ✅MB User Profile -> Registration form -> validate loses other fields #18241Anh Tran
KeymasterHi Martin,
When users enter mismatch passwords, they can't submit the form. Doesn't that happen to you?
February 12, 2020 at 9:02 PM in reply to: ✅MB User Profile -> Registration form -> inherit field values #18240Anh Tran
KeymasterHi Martin,
I think you should do some custom JS code to update the value of the children's first name based on value of their parent's first name. Unfortunately, we don't have that feature built-in.
February 12, 2020 at 8:55 PM in reply to: ✅Registration: username as email, duplicated fields, avatar, visibility issue #18239 -
AuthorPosts