Notifications
Clear all
Topic starter
22/02/2019 4:24 pm
How can I add a custom post type using Gutenberg editor? I have already tried to implement the code using the reference tutorial https://www.cloudways.com/blog/gutenberg-wordpress-custom-post-type/ but I am having an issue in the registration code. Can anyone resolve it?
array(
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
),
'has_archive' => true,
'public' => true,
'rewrite' => array('slug' => 'portfolio'),