Skip to content

Instantly share code, notes, and snippets.

@radiustheme
Last active November 8, 2025 09:41
Show Gist options
  • Select an option

  • Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.

Select an option

Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.
How to import sample data for classified listing like categories & locations
{
"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}
]
}
],
"categories": [
{
"name": "Electronics",
"slug": "",
"description": "",
"meta": "",
"order": 0,
"child":[
{
"name": "Mobile Phone",
"order": 1
},
{
"name": "Mobile Phone Accessories",
"order": 2
},
{
"name": "Computers & Tablets",
"order": 3
},
{
"name": "Computer Accessories",
"order": 4
},
{
"name": "TVs",
"order": 5
},
{
"name": "TV & Video Accessories",
"order": 6
},
{
"name": "Cameras & Camcorders",
"order": 7
},
{
"name": "Audio & MP3",
"order": 8
},
{
"name": "Video Games & Consoles",
"order": 9
},
{
"name": "Freeze",
"order": 10
},
{
"name": "Air Conditioner (AC)",
"order": 11
},
{
"name": "Other Electronics",
"order": 11
}
]
}
],
"listings":[
]
}
@Rodrigo-Fuentes
Copy link

@radiustheme do I have to follow the same format for locations? I want to upload more than 2500 entries and it is a pain to follow that same format.
I want to upload all these entries: https://github.com/martinciscap/json-estados-municipios-mexico/blob/master/estados-municipios.json

Did you solve the problem?

@jacedehodossy112
Copy link

Unable to importe any file. Nothing happens when I click "import"

@ozel1978
Copy link

how about list from other country? where we can download it?

@yamizi
Copy link

yamizi commented Mar 11, 2022

Hi @radiustheme
Can we now import listings? Or not yet?
Thanks

@yamizi
Copy link

yamizi commented Mar 11, 2022

Hi @radiustheme
Can we now import listings? Or not yet?
Thanks

@elciogodoysp
Copy link

{
"locations": [
{
"name": "New York",
"slug": "",
"description": "",
"meta": [
{"image_id" : 45},
{"_icon" : ""}
]

what are the terms so that (prince-unit = total) and (types = ?) I can't find it at all. name ok, slug ok, description ok, but nothing else works. I have to enter 5600 records and I need them to be part of the type, because I can't select more than 5000 items manually.

@Armab944
Copy link

I want some style settings on my listing page, Like in the default setting, there are no whats app or calling option on the listing page. Cal someone help me for doing that

@web920
Copy link

web920 commented Mar 10, 2023

hello

@web920
Copy link

web920 commented Mar 10, 2023

classima theme kindly
how ad paid gallery ads in this theme
please...

@web920
Copy link

web920 commented Mar 10, 2023

https://leecanto.com/ this my site

@konduce
Copy link

konduce commented Mar 13, 2023

@radiustheme can I import listings from my customer database???

@walmir57
Copy link

Como importar Estados, cidades e municípios para o Brasil?

@kylerobinsm
Copy link

Unable to importe any file. Nothing happens when I click "import"

Having the same issue

@HMC84
Copy link

HMC84 commented Apr 1, 2023

Unable to importe any file. Nothing happens when I click "import"

Having the same issue

Same here as well. @radiustheme Can you confirm the format is complete? I'm trying to upload locations and it does nothing when set in your format. When I click import, nothing happens.

Copy link

ghost commented Jun 25, 2023

How to import bulk data for listing? can we do that?

@WeedsLists
Copy link

WeedsLists commented Sep 1, 2023

This is my site https://www.weedslists.com and I am doing this to learn and in my spare time. I have uploaded about 4600 items in about 20 to 30 mins, using WP inp exp plugin. I just create one example item and exported it with all the settings that I need like a template and then I modify the .csv file with all the items like 2000 or 4000 items and then just import them in with the settings from the export file and its that easy.

@matt7570
Copy link

matt7570 commented Oct 2, 2023

I'd like to report that the import function won't allow duplicated entries. It shouldn't be like that. What it should do is creating duplicated entries with different slugs. Can you fix that?

@bingobutt69
Copy link

Hi Guys, we are you the classima radius theme and want to be able to have people list and sell from global location, and buy from global locations. What is the best way to add global locations and to give this option to sellers without having to input everything manually. When I click classifieds and location there is no option to upload a location file.

Best Regards

Tania

@fodor95
Copy link

fodor95 commented Dec 27, 2023

did anyone manage to upload sample listings in the end? i have managed only to import locations...

@yvbc
Copy link

yvbc commented Jan 6, 2024

This is my site https://www.weedslists.com and I am doing this to learn and in my spare time. I have uploaded about 4600 items in about 20 to 30 mins, using WP inp exp plugin. I just create one example item and exported it with all the settings that I need like a template and then I modify the .csv file with all the items like 2000 or 4000 items and then just import them in with the settings from the export file and its that easy.

how did you do it? I couldn't do it here.

@yvbc
Copy link

yvbc commented Jan 6, 2024

did anyone manage to upload sample listings in the end? i have managed only to import locations...

how did you do it? I couldn't do it here.

@bingobutt69
Copy link

bingobutt69 commented Jan 7, 2024 via email

@guptsanchit
Copy link

Hi,

I want to import data. I need guidance on it.

My data is available in an Excel sheet.

[email protected]

@sunflowermom
Copy link

I don't know what to do with a json file. I am used to doing imports/exports with a csv file (spreadsheet)...how do I do this?

@jaymzway
Copy link

How to import bulk data for listing? can we do that?

HERE'S PENNSYLVANIA WITH SOME CATEGORIES
COPY BELOW AND PASTE IN A TXT FILE AND SAVE AS PENNSYLVANIA.JSON

{
"locations": [
{
"name": "PENNSYLVANIA",
"slug": "",
"description": "",
"meta": [
{"image_id" : 45},
{"_icon" : ""}
],
"order": 26,
"child": [
{"name": "PENNSYLVANIA", "order": 27},
{"name": "Adams", "order": 28},
{"name": "Allegheny", "order": 29},
{"name": "Armstrong", "order": 30},
{"name": "Beaver", "order": 31},
{"name": "Bedford", "order": 32},
{"name": "Berks", "order": 33},
{"name": "Blair", "order": 34},
{"name": "Bradford", "order": 35},
{"name": "Bucks", "order": 36},
{"name": "Butler", "order": 37},
{"name": "Cambria", "order": 38},
{"name": "Cameron", "order": 39},
{"name": "Carbon", "order": 40},
{"name": "Centre", "order": 41},
{"name": "Chester", "order": 42},
{"name": "Clarion", "order": 43},
{"name": "Clearfield", "order": 44},
{"name": "Clinton", "order": 45},
{"name": "Columbia", "order": 46},
{"name": "Crawford", "order": 47},
{"name": "Cumberland", "order": 48},
{"name": "Dauphin", "order": 49},
{"name": "Delaware", "order": 50},
{"name": "Elk", "order": 51},
{"name": "Erie", "order": 52},
{"name": "Fayette", "order": 53},
{"name": "Forest", "order": 54},
{"name": "Franklin", "order": 55},
{"name": "Fulton", "order": 56},
{"name": "Greene", "order": 57},
{"name": "Huntingdon", "order": 58},
{"name": "Indiana", "order": 59},
{"name": "Jefferson", "order": 60},
{"name": "Juniata", "order": 61},
{"name": "Lackawanna", "order": 62},
{"name": "Lancaster", "order": 63},
{"name": "Lawrence", "order": 64},
{"name": "Lebanon", "order": 65},
{"name": "Lehigh", "order": 66},
{"name": "Luzerne", "order": 67},
{"name": "Lycoming", "order": 68},
{"name": "McKean", "order": 69},
{"name": "Monroe", "order": 70},
{"name": "Montgomery", "order": 71},
{"name": "Montour", "order": 72},
{"name": "Northampton", "order": 73},
{"name": "Northumberland", "order": 74},
{"name": "Perry", "order": 75},
{"name": "Philadelphia", "order": 76},
{"name": "Pike", "order": 77},
{"name": "Potter", "order": 78},
{"name": "Schuylkill", "order": 79},
{"name": "Snyder", "order": 80},
{"name": "Somerset", "order": 81},
{"name": "Sullivan", "order": 82},
{"name": "Susquehanna", "order": 83},
{"name": "Tioga", "order": 84},
{"name": "Union", "order": 85},
{"name": "Venango", "order": 86},
{"name": "Warren", "order": 87},
{"name": "Washington", "order": 88},
{"name": "Wayne", "order": 89},
{"name": "Westmoreland", "order": 90},
{"name": "Wyoming", "order": 91},
{"name": "York", "order": 92}
]
}
],
"categories": [
{
"name": "Vehicles",
"slug": "",
"description": "",
"meta": "",
"order": 12,
"child": [
{"name": "Cars", "order": 13},
{"name": "Motorcycles", "order": 14},
{"name": "Trucks", "order": 15},
{"name": "Bicycles", "order": 16},
{"name": "Car Parts & Accessories", "order": 17},
{"name": "Boats", "order": 18},
{"name": "RVs & Campers", "order": 19},
{"name": "Other Vehicles", "order": 20}
]
},
{
"name": "Real Estate",
"slug": "",
"description": "",
"meta": "",
"order": 21,
"child": [
{"name": "Houses", "order": 22},
{"name": "Apartments", "order": 23},
{"name": "Land", "order": 24},
{"name": "Vacation Rentals", "order": 25},
{"name": "Commercial Properties", "order": 26}
]
},
{
"name": "Home & Garden",
"slug": "",
"description": "",
"meta": "",
"order": 27,
"child": [
{"name": "Furniture", "order": 28},
{"name": "Home Appliances", "order": 29},
{"name": "Kitchenware", "order": 30},
{"name": "Decor", "order": 31},
{"name": "Garden Supplies", "order": 32},
{"name": "Tools & Equipment", "order": 33}
]
},
{
"name": "Fashion & Beauty",
"slug": "",
"description": "",
"meta": "",
"order": 34,
"child": [
{"name": "Clothing", "order": 35},
{"name": "Shoes", "order": 36},
{"name": "Jewelry & Watches", "order": 37},
{"name": "Bags & Accessories", "order": 38},
{"name": "Beauty Products", "order": 39},
{"name": "Other Fashion & Beauty", "order": 40}
]
},
{
"name": "Baby & Kids",
"slug": "",
"description": "",
"meta": "",
"order": 41,
"child": [
{"name": "Toys", "order": 42},
{"name": "Baby Gear", "order": 43},
{"name": "Clothing", "order": 44},
{"name": "Strollers & Car Seats", "order": 45},
{"name": "Nursery Furniture", "order": 46}
]
},
{
"name": "Sports & Outdoors",
"slug": "",
"description": "",
"meta": "",
"order": 47,
"child": [
{"name": "Fitness Equipment", "order": 48},
{"name": "Outdoor Gear", "order": 49},
{"name": "Camping & Hiking", "order": 50},
{"name": "Bicycles", "order": 51},
{"name": "Water Sports", "order": 52},
{"name": "Winter Sports", "order": 53}
]
},
{
"name": "Services",
"slug": "",
"description": "",
"meta": "",
"order": 54,
"child": [
{"name": "Automotive Services", "order": 55},
{"name": "Home Improvement", "order": 56},
{"name": "Cleaning Services", "order": 57},
{"name": "Tutoring & Classes", "order": 58},
{"name": "Health & Wellness", "order": 59},
{"name": "Event & Party Services", "order": 60}
]
},
{
"name": "Pets & Animals",
"slug": "",
"description": "",
"meta": "",
"order": 61,
"child": [
{"name": "Dogs", "order": 62},
{"name": "Cats", "order": 63},
{"name": "Birds", "order": 64},
{"name": "Pet Supplies", "order": 65},
{"name": "Other Pets", "order": 66}
]
}
]
}

@jeffosico
Copy link

Hi everyone. Any sample data for listing import? Would be much appreciated.

@sathish17110
Copy link

Any one looking for ebay categories in json file to import, here is the link. you might get errors in the business and industrial categories because some of the sub categories are long. if so you might have to change or modify them. also because this is a huge list your server ,might slow down when looking or searching for listings if you import them all.

https://github.com/sathish17110/classified-listing-categories

@jaymzway
Copy link

Hi everyone. Any sample data for listing import? Would be much appreciated.

if you scroll up you will see plenty of my sample data i submitted

@davedele
Copy link

Here is every state and city in the USA.
Copy the below, save a .json file (eg: all_locations.json). You may have to run the uploader several times.

https://gist.github.com/davedele/41bb65ba86e3763f0db8aa2fb64f0385

@NeoDevX
Copy link

NeoDevX commented Aug 16, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment