WordPress.org

Ready to get started?Download WordPress

Forums

CSV Importer
Import hierarchical taxonomy terms (6 posts)

  1. Sami kamal
    Member
    Posted 1 year ago #

    I have taxonomy with 3 levels of hierarchical terms: State>County>District. I tried importing them by adding this to every cell under csv_ctax_state column:
    ----------------------------
    0,Arizona
    Arizona, county1, district1
    -----------------------

    this imports only the parent term "state" and second level term "county". Is there a way to import the "district" terms too?

    thanks

    http://wordpress.org/extend/plugins/csv-importer/

  2. Sami kamal
    Member
    Posted 1 year ago #

    the following format seems to link posts to the hierarchical taxonomy.

    ----------------------------
    0,State
    State, County
    County, District
    -----------------------

    However, the problem is when a county exists with same name under another state, or same district name under another county. In this case, the post is linked to existing county or district, it doesn't take the top lovel "State" into consideration.

    any idea?

  3. mbfis
    Member
    Posted 1 year ago #

    Did you find any solution to your second problem as I am curious to know if it can be managed by this plugin?
    Thanks,

  4. mbfis
    Member
    Posted 1 year ago #

    I think this should do it:
    "State, County
    0, State
    County, District"

  5. bheadrick
    Member
    Posted 1 year ago #

    I've been successful using only the slug of the term at the bottom, which in this case would be district

  6. queberican351
    Member
    Posted 1 year ago #

    My solution to that exact issue is to classify them as one would in a zip code lookup method.
    ex:
    US
    US-state
    state abbreviation+county
    so it would look something like

    0,USA
    USA,Arizona
    Arizona,AZ-Phoenix
    etc

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic