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

  • onafets


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ian Dunn


    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.


    Ok thank you Ian, I’ll try to tweak it



    Hi Ian, I was wondering, can I assign the array for the all the placemarks posts automatically?

    function bgmpShortcodeCalled()
    global $post;

    $shortcodePageSlugs = array(

    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


    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.