Support » Plugin: WP Store Locator » Set alternateMarkerUrl in PHP

  • How can I set alternateMarkerUrl for each marker, using PHP?

    The docs (Use a Different Marker For Each Location) explain how to add an admin meta-box, but instead of setting the marker-url (color) manually, I want to set it based on certain store data, via php.

    I see the hook wpsl_cpt_info_window_meta_fields and tried setting
    $meta_fields['alternateMarkerUrl'] = 'http://path/to/my/marker/img.png';
    but that didn’t work; and I’m not trying to modify the info-window anyway.. just the main markers on the map.

    Thanks!

    • This topic was modified 1 year, 6 months ago by  tzeldin88.
  • The topic ‘Set alternateMarkerUrl in PHP’ is closed to new replies.