Skip to content

Instantly share code, notes, and snippets.

@alexkingorg
Last active December 19, 2015 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkingorg/5991284 to your computer and use it in GitHub Desktop.
Save alexkingorg/5991284 to your computer and use it in GitHub Desktop.
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