• Resolved ryanr1423

    (@ryanr1423)


    I’m creating a Marker List and I need it to be in alphabetical order by location title. It seems to occasionally move a title out of order. Is there a way for me to change the order of the marker list? Or can you tell me what the default order setting is based on? Doesn’t seem to be alphabet or order of entered markers…?
    Thanks in advance for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • And I would like to sort by category. Any help out there?

    Plugin Contributor WD Support

    (@wdsupport)

    Hello @ryanr1423 and @interactivedesign!

    Thanks for posting your questions!

    Unfortunately Google Maps WD does not have ordering options for Marker Listing. However, let me describe how this can be changed.

    In get_overlays($id) funcion of /wd-google-maps/frontend/models/GMWDModelFrontendMap.php file there’s the following line:

    $order_by = isset($_POST["order_by"]) ? esc_html(stripslashes($_POST["order_by"])) : "T_MARKERS.id";

    T_MARKERS.id controls how the ordering will be done. You can check the field from #_gawd_markers database table. For example, if you wish to order it by title, you need to replace T_MARKERS.id with T_MARKERS.title in this line.

    Let me know if this helps.
    Cheers!

    thanks, it worked

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Marker List Order’ is closed to new replies.