Basic Google Maps Placemarks
Avatars as marks? (5 posts)

  1. onafets
    Posted 3 years ago #

    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


  2. Ian Dunn
    Plugin Author

    Posted 3 years ago #

    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.
  3. onafets
    Posted 3 years ago #

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

  4. onafets
    Posted 3 years ago #

    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

  5. Ian Dunn
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic