How to export directories categories ONLY

Hello Support-Team,

please advice how to export categories ONLY of directory listing as I would need them on other domains. Any available export/import plugin deal with address listing unfortunately not with the needed categories.

Created within Custom Press the needed code for it…but I couldn’t find any explanation where to place it and which are the next steps to export finally those categories (also after that how to import the file on another sub domain).

// Taxonomies Export code for CustomPress

global $CustomPress_Core;

$CustomPress_Core->import=array (

‘taxonomies’ =>

array (

‘listing_category’ =>

array (

‘object_type’ =>

array (

0 => ‘directory_listing’,


‘args’ =>

array (

‘public’ => true,

‘hierarchical’ => true,

‘rewrite’ =>

array (

‘slug’ => ‘listings-category’,

‘with_front’ => false,

‘hierarchical’ => true,


‘query_var’ => true,

‘capabilities’ =>

array (

‘assign_terms’ => ‘edit_listings’,


‘labels’ =>

array (

‘name’ => ‘Listing Categories’,

‘singular_name’ => ‘Listing Category’,

‘search_items’ => ‘Search Listing Categories’,

‘popular_items’ => ‘Popular Listing Categories’,

‘all_items’ => ‘All Listing Categories’,

‘parent_item’ => ‘Parent Category’,

‘edit_item’ => ‘Edit Listing Category’,

‘update_item’ => ‘Update Listing Category’,

‘add_new_item’ => ‘Add New Listing Category’,

‘new_item_name’ => ‘New Listing Category’,

‘parent_item_colon’ => ‘Parent Category:’,

‘add_or_remove_items’ => ‘Add or remove listing categories’,






In advance Thank You for helping.


  • Michelle Shull
    • DEV MAN’s Apprentice

    Hello, Prinz!

    I've got an even easier way to do this, and I just tested exporting Directory Categories ONLY and importing them into a different site. There's a tiny little plugin made just for this:

    I took a screenshot of the Export Settings, for this run, I exported both the Categories and a custom taxonomy I created for Directory (called "States":wink: and it worked too. I imported into a multisite that's held together with unicorn dust and prayers, and it even worked there, where almost nothing is working. I give it the Michelle Official Endorsement. Plus, it's one of those handy plugins you can delete as soon as you're finished with the task, so it won't take up any space.

    Never mind the alerts on the screenshot, those are from my host.

    Would this work for you? Hope you're well, Prinz, and looking forward to a nice weekend.

  • Klaus
    • The Crimson Coder

    Hello Michelle,

    great to hear from you and you are back again. Hope you enjoyed a brilliant holiday with lots of fun and sun.

    My rating for your kind support: certainly a 10 out of 10 for prompt reply, giving great background information and of course most of all for your recommendation to choose and use a simple but most efficient plugin.

    Cheers, Prinz

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.