My custom marker is not showing?

You are here : Home / My custom marker is not showing?

My custom markers are not showing. Please see screenshots… https://snag.gy/HnTrGL.jpg and https://snag.gy/iItuHR.jpg

Public
Hello,
Which version of plugin are you using now, i think you are using 4.0.0 version please update it to the latest version 4.0.1 and let me know if you face any issue after this. if you already on updated version, please send me wp login details at support@flippercode.com so we can also check it at your end.

Thanks
#1
Public
I'm already using 4.0.1. See screenshot... https://snag.gy/7AOpcf.jpg

Here is the code from a custom hook that your lead developer coded for me. I don't think that this is causing any problem...

add_filter("wpgmp_markers","add_markers",1,2);

function add_markers($users_markers,$map_id)
{

if($map_id == 1) {
$users_markers = array();
$all_vendors = get_users(array('role' => 'seller'));
if( is_array($all_vendors) and !empty($all_vendors) ) {
foreach( $all_vendors as $index => $vendor) {
$user_meta = get_user_meta($vendor->ID);
$users_markers[$index]['title'] = $user_meta['dokan_store_name'];
$users_markers[$index]['location']['lat'] = $user_meta['wpcf-latitude'][0];
$users_markers[$index]['location']['lng'] = $user_meta['wpcf-longitude'][0];
}
}

}
return $users_markers;
}
#2
Public
Thanks for your information, we are looking on this issue and back to you very soon.

Thanks
#4

Please login or Register to Submit Answer

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.