WordPress.org

Ready to get started?Download WordPress

Forums

CSV Importer
Not selecting custom taxonomies (4 posts)

  1. imsoper
    Member
    Posted 4 years ago #

    I was able to import all my posts and custom taxonomies, but when I go to edit the posts, they aren't showing any of the custom taxonomies selected. Here is a linke to view my CSV File: https://gist.github.com/a6e3b45aff7b4e9664b3

  2. dvkob
    Member
    Plugin Author

    Posted 4 years ago #

    imsoper: Seems to work just fine for me. How did you set up your taxonomies? I put the following code in my theme's functions.php:

    add_action('init', 'csv_importer_taxonomies', 0);
    
    function csv_importer_taxonomies() {
        register_taxonomy('country', 'post', array(
            'hierarchical' => false,
            'label' => 'Country',
        ));
        register_taxonomy('screening-block', 'post', array(
            'hierarchical' => false,
            'label' => 'Screening Block',
        ));
        register_taxonomy('finalist', 'post', array(
            'hierarchical' => false,
            'label' => 'Finalist',
        ));
    }
  3. ellie.roepken
    Member
    Posted 3 years ago #

    It seems that this plugin only works with non-heirarchical custom taxonomies. When I turn hierarchical off on my taxonomies, it works fine, but it kind of defeats the purpose of what I was trying to do...

  4. Ian
    Member
    Posted 3 years ago #

    I think I'm having a similar problem. Mine are already non-heirarchical - is there anything else here that's wrong?
    register_taxonomy( 'dc-character', 'DC', array( 'hierarchical' => false, 'label' => 'DC Comics Character', 'query_var' => true, 'rewrite' => true ) );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic