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 use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.