Multi-site custom-post-type import not available
-
Hello,
I have created a very basic child theme of TwentyFifteen (just a CSS file, a screenshot image, and a functions.php file). The only thing the functions.php does is create a custom post type. This child theme is not network installed, but rather installed only on my child site.
When I go to import into the created custom post type with this CSV Importer, I get the error “CUSTOMPOST LIST IS EMPTY”. Here’s the full code in functions.php:
<?php add_action( 'init', 'create_product_type' ); function create_product_type() { register_post_type( 'product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multi-site custom-post-type import not available’ is closed to new replies.