Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create Project post type (bound to Projects taxonomy) to save meta
<?php
// Create Project post type (bound to Projects taxonomy) to save meta
function akv3_projects_tax_bindings($configs) {
$configs[] = array(
'taxonomy' => 'projects',
'post_type' => array(
'project',
array(
'public' => true,
'show_ui' => true,
'label' => 'Projects',
'rewrite' => array(
'slug' => 'project',
'with_front' => false,
'feeds' => false,
'pages' => false
),
'supports' => array(
'title',
'editor',
'excerpt',
'thumbnail',
'revisions',
'custom-fields',
)
)
),
'slave_title_editable' => false,
'slave_slug_editable' => false,
);
return $configs;
}
add_filter('cftpb_configs', 'akv3_projects_tax_bindings');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.