• Resolved Telefunki

    (@telefunki)


    Hi Radiustheme,

    I have a question, I found on Github your JSON code to add Locations by the importer.
    At the moment it looks like this:

    {
      "locations": [
        {
          "name": "New York",
          "slug": "",
          "description": "",
          "meta": [
            {"image_id" :  45},
            {"_icon" :  ""}
          ],
          "order": 0,
          "child": [
            {"name" : "New York", "order": 1 },
            {"name" : "Port Chester", "order": 2},
            {"name" : "Mineola", "order": 3},
            {"name" : "Mount Vernon", "order": 4},
            {"name" : "Hempstead", "order": 5},
            {"name" : "Lynbrook", "order": 6},
            {"name" : "Yonkers", "order": 7},
            {"name" : "Franklin Square", "order": 8},
            {"name" : "Newburgh", "order": 9},
            {"name" : "Buffalo", "order": 10},
            {"name" : "Long Beach", "order": 11},
            {"name" : "Ithaca", "order": 12},
            {"name" : "New Rochelle", "order": 13},
            {"name" : "Freeport", "order": 14},
            {"name" : "Rochester", "order": 15},
            {"name" : "Albany", "order": 16},
            {"name" : "Valley Stream", "order": 17},
            {"name" : "Poughkeepsie", "order": 18},
            {"name" : "Baldwin", "order": 19},
            {"name" : "West Hempstead", "order": 20},
            {"name" : "Schenectady", "order": 21},
            {"name" : "White Plains", "order": 22},
            {"name" : "Uniondale", "order": 23},
            {"name" : "North Valley Stream", "order": 24},
            {"name" : "Ossining", "order": 25}
          ]
        }
      ]
      
     }

    How can I make sub child locations for example for Albany? Or do I have to make them manually?

    Thanks a lot.

    • This topic was modified 2 years, 7 months ago by Telefunki.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author RadiusTheme

    (@techlabpro1)

    Hello,

    Sorry, sir right. now only support 3 levels https://www.radiustheme.com/docs/main-settings/general-settings/#location-settings

    Thanks

    Thread Starter Telefunki

    (@telefunki)

    Thanks a lot Radiustheme for your answer.
    Yes I have seen this already in the documentation.

    It’s

    1. State
    2. City
    3. Town

    In the example above we have the 1st point State, in the example it’s New York.

    The child part in the example above should be the City part I think and it’s I think missing the 3rd part town.

    I can create in the WP Dashboard under Albany for example “Albany North”

    Is there a way to add those parts by the JSON importer?

    Thanks a lot and have a great day

    Please don’t tag the thread as resolved when you haven’t answered the question.

    I have the same exact question.

    You say that the plugin supports 3 levels, but in the sample data you only show 2 levels. Can you show us a sample with the 3 levels?

    Also, do you have or do you know where we can get a COMPLETE locations JSON (not just New York) for US states, counties and cities (3 levels)? Every place I look the information is presented in CSV format and in a COMPLETELY different manner than your sample data format (the WHOLE point of the import is so you don’t have to mess with each entry individually).
    Thank you in advance!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a sub Location’ is closed to new replies.