Hello,
I have created a custom post type in a child theme of x that is supposed to act as a page (maybe my trouble is initiated already here…) This is my code in functions.php:
// Creates mytypes Custom Post Type
function mytypes_init() {
$args = array(
'label' => 'My Types',
'description' => 'All of My Types',
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'hierarchical' => true,
'rewrite' => array('slug' => 'mytypes'),
'query_var' => true,
'menu_icon' => 'dashicons-location-alt',
'has_archive' => false,
'taxonomies' => array(
'category',
'post_tag'
),
'supports' => array(
'title',
'editor',
'excerpt',
'trackbacks',
'custom-fields',
'comments',
'revisions',
'thumbnail',
'author',
'page-attributes',)
);
register_post_type( 'mytypes', $args );
}
add_action( 'init', 'mytypes_init' );
I have also managed to use the templates from x on these custom posts/pages.
However, when launching Cornerstone, I see the
“header class=“x-header-landmark””…"/header"
with a “BLOG” title on the left and some breadcrumbs on the right. (It doesn’t matter wich page-template I choose, I get this on every one.)
I don’t want this and understand that I can hide it under Page Settings. My problem is that I don’t have any Page Settings when editing in “Wordpress core”. I do have it under the “normal” pages though.
So where did I go wrong? Am I trying to achieve something that is not possible, or have I just missed something important when creating my custom post type?
I appreciate any help!