Custom Post Types, no content area?
-
Hi I made a custom post type for the first time, my goal is to make a second blog on the same site. After making the CPT, it shows up in the admin panel just fine, I can make new blog entires just fine… I added this new blog to the menu and when I go to view it there’s no content area, and the sidebar menus don’t appear on the new blog page. WordPress seems to work fine, the link in the menu goes to the new blog page but there’s no content being displayed. Do I need to mess with “the loop” to get it to display content?
add_action(‘init’, ‘_sb-blog’);
function sb-blog_register() {
$labels = array(
‘name’ => _x(‘SB-Blogs’, ‘post type general name’),
‘singular_name’ => _x(‘SB-Blog’, ‘post type singular name’),
‘add_new’ => _x(‘Blog’, ‘portfolio item’),
‘add_new_item’ => __(‘Blog Item’),$args = array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘query_var’ => true,
‘rewrite’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
);register_post_type( ‘portfolio’ , $args );
}If i’m not providing enough info then let me know.
Thanks
The topic ‘Custom Post Types, no content area?’ is closed to new replies.