Does this plugin work for newer versions of WordPress and Custom Post Types?
It seems to be fine when using Post and Page types but I can't seem to get it to work for a custom post type.
The post type shows up on the section dropdown when setting up the fields but not in the editor (unless it's a page or post)
function register_project_type()
{
$args = [
'label' => esc_html__('Projects', 'text-domain'),
'labels' => [
'menu_name' => esc_html__('Projects', 'text-domain'),
'name_admin_bar' => esc_html__('Project', 'text-domain'),
'add_new' => esc_html__('Add Project', 'text-domain'),
'add_new_item' => esc_html__('Add new Project', 'text-domain'),
'new_item' => esc_html__('New Project', 'text-domain'),
'edit_item' => esc_html__('Edit Project', 'text-domain'),
'view_item' => esc_html__('View Project', 'text-domain'),
'update_item' => esc_html__('View Project', 'text-domain'),
'all_items' => esc_html__('All Projects', 'text-domain'),
'search_items' => esc_html__('Search Projects', 'text-domain'),
'parent_item_colon' => esc_html__('Parent Project', 'text-domain'),
'not_found' => esc_html__('No Projects found', 'text-domain'),
'not_found_in_trash' => esc_html__('No Projects found in Trash', 'text-domain'),
'name' => esc_html__('Projects', 'text-domain'),
'singular_name' => esc_html__('Project', 'text-domain'),
],
'public' => true,
'menu_icon' => 'dashicons-format-gallery',
'exclude_from_search' => false,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'show_in_rest' => true,
'capability_type' => 'post',
'hierarchical' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite_no_front' => false,
'show_in_menu' => true,
'supports' => [
'title',
'editor',
'thumbnail',
'custom-fields'
],
'rewrite' => array('slug' => 'project'),
];
register_post_type('project', $args);
}
add_action('init', 'register_project_type');