I am trying to display usermeta fields created by ultimate member on a google map.
We are currently using a plugin for that but it is horrible, so I am trying to find an alternative.
Is there any documentation that you are following?
I tried following the maps documentation but couldn’t figure out how to access fields that are not created by toolset.
Is there a similar example that we can see?
Sure, this is how it is supposed to work though I would like to use the additional features of toolset maps. hidden link
What is the link to your site?
hidden link
This is what I have been thinking could be possible:
1. I created a custom post type called maps for that I tried pulling in the custom user fields couldn’t figure out how (using the new block editor).
2. Maybe another way would be creating the user fields for ultimate member with toolset but it looks like this does not work and since the ultimate member fields are stored in the user meta table I thought we could just access them using toolset.
Hello. Thank you for contacting the Toolset support.
Toolset blocks version 1.0.1 support post views for now.
The first thing is that you are saying that you want to create a map based on the information stored by the ultimate members plugin and that plugin stores the information at usermeta table.
I need to first understand your data/content structure, what content you want to display exactly where. Can you please first show me what content you want to plot on map and from where we need to get the content.
Once I review your data structure I will be able to guide you in the right direction. To review your stcture, I need admin access details and links where I can see your content based on which you want to create the map.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Using the Toolset shortcode [wpv-user field='custom-field-name'] we can access the usermeta information strored in the database by ultimate member plugin. so, we have a way to access those stored user custom fields.
I've created the following user view:
=> hidden link..de/wp-admin/admin.php?page=views-editor&view_id=1075
Now, I would like to know, as I can see the map co-ordinates with each user profile at the bottom of the user profile:
=> hidden link..de/wp-admin/user-edit.php?user_id=181&wp_http_referer=%2Fwp-admin%2Fusers.php
- Do we need to use those points to plot the pin?
Or
We need to use those user fields stored in usermeta table to build the address like:
Also, The Map API key is not configured correctly, when I click on button "API prüfen" - it showing error.
=> hidden link
- Please configure the unrestricted map API key.
Once you configure correct map API key please revert back to me with answers for the question I raised and I would be happy to help you further.
I tried fixing the key but I keep seeing the error message in the backend. The weird thing is, that I am not seeing errors in the browser console and none in the google cloud console.
The preview below the api setting seems to work. Maybe it works when we try it in the actual view.
Re coordinates: the coordinates are from the plugin I am trying to replace so we have to use the user fields.
Can I use a different marker on the map by user role?
Thank you for your help!
Arne
New threads created by Minesh and linked to this one are listed below:
Re coordinates: the coordinates are from the plugin I am trying to replace so we have to use the user fields.
==>
Just to ensure what user fields we need to use and combine those together to form a single address? Can you please confirm? I mean, based on what fields you want to form the address and display the marker on the map?
Can I use a different marker on the map by user role?
==>
I've split the ticket and shared the solution with that.
Sure, the fields "hausnr" (number), "unternehmen-str" (street), "ort" (city), "plz" (zip code), "country" shall be used to position the marker on the map.