Add editor to custom post types
-
Hello,
I have a lot custom post types and the editor is visible only on classic posts.
For example, this is the code for one of my custom post types:function oglasna_tabla(){
$args = array(
‘labels’ => array(
‘name’ => ‘Oglasna tabla’,
),
‘public’ => true,
‘has_archive’ => true,
‘menu_icon’ => ‘dashicons-welcome-write-blog’,
‘supports’ => array(‘title’, ‘editor’),
‘rewrite’ => array(‘slug’ => ‘oglasi’),
);register_post_type(‘oglasna_tabla’, $args);
}
add_action(‘init’, ‘oglasna_tabla’);What needs to be added so that the editor is visible on this custom post type?
Thanks in advance,
Igor
- The topic ‘Add editor to custom post types’ is closed to new replies.