Title: [Plugin: Basic Google Maps Placemarks] Avatars as marks?
Last modified: August 20, 2016

---

# [Plugin: Basic Google Maps Placemarks] Avatars as marks?

 *  [onafets](https://wordpress.org/support/users/onafets/)
 * (@onafets)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/)
 * Hi Ian, compliment! The plugin is great and work just fine!
 * I’ve few of question that can be useful for others too:
 * 1)Can I associate a marker to each user, the best would be to the relative avatar.
   
   2)Can I list the placemark’s categories below the map as checkboxes and when 
   selected will call the relative posts? 3)I tried to insert into my theme single.
   php the map code but the system suggest me to create a filter first, can you 
   indicate me which the filter is? 4)How can I show the permalink, click and go,
   into the relative post for each marks?
 * thank you
 * [http://wordpress.org/extend/plugins/basic-google-maps-placemarks/](http://wordpress.org/extend/plugins/basic-google-maps-placemarks/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/#post-3065612)
 * Hi onafets,
    1. Check the FAQ. There are a few examples you can modify to achieve this.
    2. The plugin doesn’t support that.
    3. Are you talking about adding `do_shortcode( '[bgmp-map]' )` to the template?
       If you got the error about enqueueing the necessary files, the answer to that
       is in the FAQ already.
    4. It sounds like you’re looking for something similar to [this thread](http://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-single-placemark-on-maps-and-functionsphp-question?replies=3).
 *  Thread Starter [onafets](https://wordpress.org/support/users/onafets/)
 * (@onafets)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/#post-3065627)
 * Ok thank you Ian, I’ll try to tweak it
 *  Thread Starter [onafets](https://wordpress.org/support/users/onafets/)
 * (@onafets)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/#post-3065628)
 * Hi Ian, I was wondering, can I assign the array for the all the placemarks posts
   automatically?
 * function bgmpShortcodeCalled()
    { global $post;
 *  $shortcodePageSlugs = array(
    ‘first-page-slug’, ‘second-page-slug’, ‘hello-
   world’ …..
 * I’m trying to get the codes for associate a marker for each user (avatar) but
   I can’t get my head roud it, can you suggent a tutorial for it?
 * Thank you, have a great sunday
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/#post-3065634)
 * It’d be something more like this:
 *     ```
       function setBGMPDefaultIconByCategory( $iconURL, $placemarkID )
       {
           // get the ID of the user that the current placemark is associated with
           // get that user's avatar
           // set $iconURL = the URL to the avatar
   
           return $iconURL;
       }
       add_filter( 'bgmp_default-icon', 'setBGMPDefaultIcon', 10, 2 );
       ```
   
 * If you’re having trouble getting it to work, I’d recommend hiring a developer.
   It’d be less than 30 minutes of work, so it’d be pretty cheap. Check out the ‘
   Customization’ section of the ‘Other Notes’ page for a link to WP job posting
   sites.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] Avatars as marks?’ is closed to
new replies.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [marks](https://wordpress.org/support/topic-tag/marks/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-avatars-as-marks/#post-3065634)
 * Status: not a support question