• htdev

    (@htdev)


    Hello,

    I’ve followed the docs here – https://wpstorelocator.co/document/change-search-results-order/ – but was unable to sort the stores by menu_order. In the docs I copied the code and replaced $row['store']; with $row['menu_order']; but it didn’t work. I also tried using Advance Custom Fields and placed a number field with an ID of sort_order on all store pages. Then I tried changing $row['store']; to $row['sort_order'];, but that didn’t work either. If possible, what’s the easiest way to sort the stores by the menu order or custom fields?

    Thank you

    • This topic was modified 5 years ago by htdev.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Sorry for the late response.

    The ‘menu_order’ is probably not a meta value from the store locator itself, right?

    For the code to work the ‘menu_order’ needs to be a custom meta value.

Viewing 1 replies (of 1 total)

The topic ‘Sort stores by menu_order’ is closed to new replies.