WordPress.org

Ready to get started?Download WordPress

Forums

CSV Importer
Taxonomy assignment (6 posts)

  1. Topher
    Member
    Posted 2 years ago #

    My import is working well, pulling in custom posts and all related hierarchical taxonomies. It's creating the taxonomy contents just fine, but not assigning the posts to the proper taxonomy.

    If I take off the hierarchical and make it not have children, it assigns the post to the proper tax just fine. When I add in the parent child relationship it loads the taxonomy contents but doesn't assign the post to any.

    Am I doing something wrong?

    An example taxonomy field looks like this:
    Sermons,The Land Between

    Where Sermons is the parent, The Land Between is the child. I would expect that post to be in both, or at LEAST in the child.

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

  2. Joy
    Member
    Posted 2 years ago #

    I had this same problem. I assume you are using a custom taxonomy, not categories.
    When you use categories, it seems to work better.
    I rewrote the function that adds in the taxonomies to combine the one for categories and the generic one, but it had the same issue (I had to use the generic taxonomy functions instead of the category-specific ones). It might be a bug in WordPress.
    What I see is the posts are in the taxonomy and I can list them on the post and the link sometimes works. But trying to look at the taxonomy in the admin panel, it says there are 6 pages and doesn't show any terms. Or it shows a few parent terms with 0 counts (even though they really do have posts, or children with posts).

  3. hasti.shah
    Member
    Posted 2 years ago #

    The same problem am facing right now. Is any one got the solution to this.
    Please let me know as soon as possible.

    Thanks in advance

  4. mtnporcupine
    Member
    Posted 1 year ago #

    I am also having this problem. My Custom Taxonomies are imported, but the posts do not get assigned the proper taxonomy.

    Here is a link to my CSV file. Any help would be appreciated!

  5. mtnporcupine
    Member
    Posted 1 year ago #

    Here is a solution from this forum from about a year ago - a solution I never would have figured out, as the sample csv's don't include this syntax! Basically, root custom taxonomies need to preceded with 0,

    csv_ctax_wpbdm-category
    "0,Accommodation,"
    "0,Accountants,"
    "0,Accountants,"
  6. JCIstevens
    Member
    Posted 1 year ago #

    Thanks, Porcupine... this worked for me!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic