Title: Importing categories
Last modified: March 4, 2020

---

# Importing categories

 *  Resolved [phil2019](https://wordpress.org/support/users/phil2019/)
 * (@phil2019)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/importing-categories-3/)
 * Hi, thanks for your wonderful plugin. Using it for classifieds, I would like 
   to know if you know a way of importing categories and subcategories, especially
   for Vehicles as there is a hundred of makes and thousands of models. It took 
   about a month to create a perfect criss-crossed .xml .csv file to save time by
   importing it. Thinking at redoing it make by make and model by model gives me
   a headache already 🙂 Thanks

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

 *  Thread Starter [phil2019](https://wordpress.org/support/users/phil2019/)
 * (@phil2019)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/importing-categories-3/#post-12509966)
 * Hi, found the solution with Category Import Reloaded plugin.
    Now is there a 
   way to limit the number of categories levels appearing on Search? Screenshot:
   [http://prntscr.com/rbqar7](http://prntscr.com/rbqar7) To something like the 
   site I try replacing: [http://prntscr.com/rbqe0n](http://prntscr.com/rbqe0n) 
   If I import all makes and models, the search list is going to be massive and 
   very very lengthy. Not counting Real Estate, jobs, services etc.. Thanks
 *  [aazztech](https://wordpress.org/support/users/aazztech/)
 * (@aazztech)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/importing-categories-3/#post-12510866)
 * > Now is there a way to limit the number of categories levels appearing on Search?
 * It is not possible for now, but we can give you a filter hook for that.
 * > If I import all makes and models, the search list is going to be massive and
   > very very lengthy
 * This is a bit confusing to us, would you please explain us a little more.
 *  Thread Starter [phil2019](https://wordpress.org/support/users/phil2019/)
 * (@phil2019)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/importing-categories-3/#post-12513142)
 * Thanks for your answer. What I was trying to say is that if I cannot limit the
   level number of categories, sub1, sub2 in the main search, the list users will
   see will be too long. E.g with Volvo only: [http://prntscr.com/rc4mjq](http://prntscr.com/rc4mjq)
   
   As you can see, Volvo is the 2904 entry, so the very long list. What I want to
   achieve is: Cat: Vehicles Sub1: Cars Sub2: sedans coupes 4X4 etc.. in Home page
   search. Like this: [http://prntscr.com/rc4rxk](http://prntscr.com/rc4rxk)
 * Then when user has made the choice of sedans, the other search in sidebar is 
   going to refine what is available in term of makes: [http://prntscr.com/rc4t4c](http://prntscr.com/rc4t4c)
 * And if the choice is Dodge, user sees only Dodge Coupes available: [http://prntscr.com/rc4vj6](http://prntscr.com/rc4vj6)
 * Same for Fuel type, Gearbox type… which I’ll set as custom fields to be filled
   by sellers on “submit your listing” page.
    So yes and thank you for the hook 
   code that will limit the main search to 3 levels, the other variables should 
   be taken care of with different search widgets depending of category page (another
   plugin to find).
 * Where do I enter the hook in functions.php? [http://prntscr.com/rc59yk](http://prntscr.com/rc59yk)
   
   Thanks a lot.

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

The topic ‘Importing categories’ is closed to new replies.

 * ![](https://ps.w.org/directorist/assets/icon-256x256.gif?rev=3185058)
 * [Directorist: AI-Powered Business Directory, Listings & Classified Ads](https://wordpress.org/plugins/directorist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/directorist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/directorist/)
 * [Active Topics](https://wordpress.org/support/plugin/directorist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/directorist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/directorist/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [phil2019](https://wordpress.org/support/users/phil2019/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/importing-categories-3/#post-12513142)
 * Status: resolved