Home › Forums › Backend Issues (wp-admin) › Add field group to specific post in Custom Post Type › Reply To: Add field group to specific post in Custom Post Type
register_post_type($this->slug, array('label' => 'Supplemental Content', 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'capability_type' => 'page', 'hierarchical' => false, 'rewrite' => false, 'query_var' => true, 'exclude_from_search' => true, 'menu_position' => $this->options['post_type']['menu_position'], 'supports' => $this->options['post_type']['supports'], 'labels' => array ('name' => 'Supplimental Content', 'singular_name' => 'Page', 'menu_name' => 'Supplimental Content', 'add_new' => 'Add Page', 'add_new_item' => 'Add New Page', 'edit' => 'Edit', 'edit_item' => 'Edit Page', 'new_item' => 'New Page', 'view' => NULL, 'view_item' => NULL, 'search_items' => 'Search Pages', 'not_found' => 'No Pages Found', 'not_found_in_trash' => 'No Pages Found in Trash'), 'description' => 'This post type has been added by the plugin "Supplimental Content". It allows the user to create content that can be added to archive pages on the site. For more information read the documentation for the plugin.'));
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.