I'm at a loss here, I "downgraded" my 3.3.2 version to 3.2.1 and exported so I was doing an export/import from the same version of WP. Still no luck, I get the custom posts but no custom taxonomy or fields.
Just to clarify I'm doing an "All content" export to ensure I get all relevant info in my export file.
Just in case I'm missing something, here are the relevant bits from my export blog's functions.php file (post/taxonomy only, the custom fields I'll leave out for now):
function build_taxonomies() {
register_taxonomy(
'site_archives_cats',
'site_archives',
array(
'hierarchical' => true,
'label' => 'Categories',
'query_var' => true,
'rewrite' => true
)
);
register_taxonomy(
'site_archives_tags',
'site_archives',
array(
'hierarchical' => false,
'label' => 'Tags',
'query_var' => true,
'rewrite' => true
)
);
}
add_action( 'init', 'build_taxonomies', 0 );
function create_my_post_types() {
register_post_type( 'site_archives',
array(
'labels' => array(
'name' => __( 'Archives' ),
'singular_name' => __( 'Archives' )
),
'public' => true,
'show_ui' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'menu_position' => 5,
'supports' => array( 'title', 'editor', 'excerpt', 'revisions'),
'taxonomies' => array( 'site_archives_cats', 'site_archives_tags'),
'has_archive' => 'article-archives',
'register_meta_box_cb' => 'add_additional_info_meta',
'rewrite' => array('slug' => 'archives')
)
);
}
add_action( 'init', 'create_my_post_types' );
And my import blog's functions.php is an exact copy/paste.
Any ideas at all on why the custom taxonomy is not being imported? I feel like it must be something painfully simple, but I just don't get it.
Thanks.