I'm using Wordpress Magazine Style Theme (http://wordpress.org/themes/magazine-style) which doesn't have any other than default post format set (no galleries, aside, etc.).
I would like to create a child theme that would have custom post types added via register_post_type() function.
In childtheme folder I created files:
- style.css with import rule
- functions.php
According to Codex (http://codex.wordpress.org/Post_Types) I've added in functions.php:
<?php
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'acme_product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => true,
'has_archive' => true,
)
);
}
?>
But I can't see the new Product post type while creating a new post (there is no "Format" menu).
What else I have to do to enable custom post types in child theme?