custom post type plugin error [closed]

The problem is your code is using ‘Curley quotes’ which is probably something the tutorials cms converted automatically (WordPress…). ‘show_in_rest’ => true You need to change these to single quotes: ‘show_in_rest’ => true Full code: <?php /* Plugin Name: Register Custom Post Types */ function goldnuggs_register_post_type() { $labels = array( ‘name’ => __( ‘Case-studies’, ‘goldnuggs’ … Read more