Title: Export Category &#8220;Tree&#8221;
Last modified: January 13, 2017

---

# Export Category “Tree”

 *  Resolved [ryanb4614](https://wordpress.org/support/users/ryanb4614/)
 * (@ryanb4614)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/export-category-tree/)
 * Hello. Is there any way to export all the “parent categories”
    Example: Paper(
   parent) Legal>Woven>White (sub categories). When I export I get for white the“
   Woven” as the parent which is right but would like to get the other ones hard
   to designate with a bunch of categories what the first/main category is that 
   this item is under.

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/export-category-tree/#post-8653513)
 * Hi [@ryanb4614](https://wordpress.org/support/users/ryanb4614/)
 * It sounds like this would require a custom PHP function, but can you provide 
   a couple of before and after examples of what you’re trying to do? For example,
   are you trying to convert this:
 *     ```
       Legal > Woven > White
       Letter > Woven > White
       ```
   
 * To this:
 *     ```
       Legal
       Letter
       ```
   
 * Or, something else?
 *  Thread Starter [ryanb4614](https://wordpress.org/support/users/ryanb4614/)
 * (@ryanb4614)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/export-category-tree/#post-8653520)
 * Just need for when you export a product you get the “Product Categories” < this
   is what I am looking for when you export Product Categories not woocomerce products
   🙂
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/export-category-tree/#post-8665003)
 * Hi [@ryanb4614](https://wordpress.org/support/users/ryanb4614/)
 * Thanks for clarifying. When exporting the Product Categories, you can use our
   filtering options to only export parent categories: [http://www.wpallimport.com/tour/data-filtering/](http://www.wpallimport.com/tour/data-filtering/)
 * The rule you should set is “Parent Name” > “is empty”.
 * If this doesn’t help, please open a support ticket about this issue so we can
   take a closer look at the data: [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/)

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

The topic ‘Export Category “Tree”’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-export/assets/icon-256x256.png?rev=2570162)
 * [WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel](https://wordpress.org/plugins/wp-all-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-export/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/export-category-tree/#post-8665003)
 * Status: resolved