Skip Navigation

[Resolved] How to import custom categories from a CSV file?

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by leeF-2 7 years ago.

Assisted by: Minesh.

Author
Posts
#511811

I have read the documentation on importing information via CSV. However, it doesn't answer my question.

I have a CSV file with a list of parent and child categories. I want to import these into my site. I do not see any specific instructions for doing this. I am not trying to import posts. Just categories that will be used for a couple of my CPTs.

Thanks,

#511951

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

CSV import plugin support for custom taxonomies. If you visit the plugins page and click on "Read More" link you will find the following description.
=> https://wordpress.org/plugins/csv-importer/

CUSTOM TAXONOMIES

New in version 0.3.0

Once custom taxonomies are set up in your theme's functions.php file or
by using a 3rd party plugin, csv_ctax_(taxonomy name) columns can be
used to assign imported data to the taxonomies.

Non-hierarchical taxonomies

The syntax for non-hierarchical taxonomies is straightforward and is essentially
the same as the csv_post_tags syntax.

Hierarchical taxonomies

The syntax for hierarchical taxonomies is more complicated. Each hierarchical
taxonomy field is a tiny two-column CSV file, where the order of columns
matters. The first column contains the name of the parent term and the second
column contains the name of the child term. Top level terms have to be preceded
either by an empty string or a 0 (zero).

Sample <strong>examples/custom-taxonomies.csv </strong> file included with the plugin
illustrates custom taxonomy support. To see how it works, make sure to set up
custom taxonomies from functions.inc.php.

Make sure that the quotation marks used as text delimiters in csv_ctax_
columns are regular ASCII double quotes, not typographical quotes like "
(U+201C) and " (U+201D).

You should also check the Sample examples/custom-taxonomies.csv file and make sure you setup the right setup.

#512168

Hello Minesh,

Thanks for that. I decided to use Bulkpress plugin to do this. It worked great.

Thanks!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.