Title: Multi-layered sort
Last modified: January 31, 2020

---

# Multi-layered sort

 *  Resolved [JT83](https://wordpress.org/support/users/jtintner/)
 * (@jtintner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multi-layered-sort/)
 * Hi there-
 * We are looking to modify the ordering of the stores that are displayed to the
   user in the following manner.
 * I have for example two pages with our store locator plugins installed and configured
   on so you can see what we are trying to accomplish.
 * First, our public facing currently the workable solution that the customer sees
   is [https://www.funkaway.com/store-locator](https://www.funkaway.com/store-locator).
 * 1) The list of stores there is in Alphabetical order and I have not modified 
   this code
    2) The listings of stores is over 6K in our system comprised of 44
   different categories 3) The listings for this locator are being populated with
   this shortcode currently [ASL_STORELOCATOR template”1″] 4) Our configuration 
   is set to show the first view “the one before the user uses geo detection or 
   enters an address or zip code to alphabetical
 * [https://funkaway.com/store-locator-test/](https://funkaway.com/store-locator-test/)
   
   The goal of this page is to achieve the following 1) I want my Walmart stores
   to show at the top of the list this is an ID of 123 2) When a user performs a
   search I still want to show all the listings within 15 miles or whatever they
   choose from the drop down but we want to elevate the Walmart stores to be at 
   the top of the list. The example I can give is if I do a search for say 60035
   and there are the following results at the demo distances.
 * Desired Result
    – Walmart Store 1 (6 Miles) – Walmart Store 2 (8 Miles) – Walmart
   Store 3 (10 Miles) – Ace Hardware (1 mile) – Jewel (1 mile) – Camping world (
   2 Miles) – Ace Hardware (2.5 Miles) – Jewel Store 2 ( 3 Miles) – Camping World
   2 ( 4 Miles)
 * etc….
 * The desire is to always have a particular category appended to the top of “featured”
   without specifically calling them out as featured.
 * Is there any way to achieve this with the shortcodes I have reviewed the documentation
   on your website many times but am having a hard time finding out if
    A) This 
   is even possible B) The right shortcode configuration to use.
 * I did try one thing which is was to try and use the shortcode like this
    [ASL_STORELOCATOR
   select_category=”123,155,160,167″ template=”1″]
 * 123 is actually our Walmart Category and I thought if I used the above construct
   it would order the results in the order I have listed the category ID’s by.
 * Any help on this is appreciated and I can provide a bit more detail if necessary.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmulti-layered-sort%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [JT83](https://wordpress.org/support/users/jtintner/)
 * (@jtintner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multi-layered-sort/#post-12393912)
 * [@agilelogix](https://wordpress.org/support/users/agilelogix/) how do I set up
   the shortcode to display my walmart stores at the top of the list once a user
   does a search? I know I can control it but Ive tried the shortcodes listed in
   my original ticket but that is not working. Its limiting the stores to just walmart.
 * What we are looking for is to have the walmart stores always show at the top 
   once a user does a search and then list the other stores in distance ordering.
 * How do we achieve this?
 *  Thread Starter [JT83](https://wordpress.org/support/users/jtintner/)
 * (@jtintner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multi-layered-sort/#post-12403432)
 * I have updated the plugin thanks for that info.
 * I have generated an EXPORT file from the system and see there is an order field
   that we can input the values on.
 * I also took a look at your IMPORT.CSV template but I do not see a column for 
   order.
 * We have over 5K stores that are Walmart stores and I presume that each one needs
   to have an order higher than the previous?
 * I have a few questions
    1) How do we do this in an import template, we cannot
   manually go through all 6K stores in the system and hand code an order ID 2) 
   I look at the Import tempalte ([https://imgur.com/6u3qmZR](https://imgur.com/6u3qmZR))
   <– screenshot of your file but there is no order ID column. 3) I took a look 
   at an export out of our system and see there are some fields that are not on 
   the import template. 4) Do the Order ID’s have to be unique per location or can
   we use say for example 10 for all Walmart stores, 9 for Ace Hardware, 8 for Camping
   world…. etc.
 * IMPORT TEMPLATE FIELDS I SEE ARE
    title description street city state postal_code
   country lat lng phone fax email website is_disabled logo_name categories marker_id
   logo_image description_2 open_hours update_id
 * EXPORT FIELDS I SEE ARE ( THESE ARE THOSE FIELDS THAT I SEE UPON EXPORT)
    title
   description street city state postal_code country lat lng phone fax email website
   description_2 marker_id is_disabled open_hours logo_name categories **order**
   <– Not on the import template update_id
 * We are unclear as to the next steps now that we have the latest version installed.
 * Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multi-layered sort’ is closed to new replies.

 * ![](https://ps.w.org/agile-store-locator/assets/icon-128x128.png?rev=2780478)
 * [Store Locator WordPress](https://wordpress.org/plugins/agile-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/agile-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/agile-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/agile-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/agile-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/agile-store-locator/reviews/)

## Tags

 * [category sorting](https://wordpress.org/support/topic-tag/category-sorting/)
 * [featured](https://wordpress.org/support/topic-tag/featured/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)

 * 2 replies
 * 2 participants
 * Last reply from: [JT83](https://wordpress.org/support/users/jtintner/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/multi-layered-sort/#post-12403432)
 * Status: resolved