Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function childThemeSetup()
- {
- registerPostTypePerson();
- registerPersonTypeTax();
- registerResearchTax();
- }
- function registerPostTypePerson()
- {
- $aryPostTypeArguments = array(
- 'labels' => mizzouCreatePostTypeLabels('Person','People'),
- 'public' => true,
- 'rewrite' => true,
- 'menu_position'=>20,
- 'supports' => array(
- 'title',
- 'editor',
- 'thumbnail',
- 'revision',
- 'custom-fields'
- ),
- );
- register_post_type('person',$aryPostTypeArguments);
- }
- function registerPersonTypeTax()
- {
- /**
- * @todo ask gen if this really needs to be attached to pages
- */
- $aryAttachedToPostTypes = array('person','page','post');
- $aryTaxonomyArgs = array(
- 'labels' => mizzouCreateTaxonomyLabels('Person Type'),
- 'sort' => true,
- 'rewrite' => array('slug'=>'person-type'),
- 'hierarchical' => true,
- );
- register_taxonomy('person_type',$aryAttachedToPostTypes,$aryTaxonomyArgs);
- }
- function registerResearchTax()
- {
- /**
- * @todo ask gen if research needs to be attached to posts
- */
- $aryAttachedToPostTypes = array('person','page');
- $aryTaxonomyArgs = array(
- 'labels' => mizzouCreateTaxonomyLabels('Research Topic','Research Topics'),
- 'sort' => true,
- 'rewrite' => array('slug'=>'research-topic'),
- /**
- * @todo ask gen if research tags should be check boxes or complete-as-you-type
- */
- 'hierarchical' => false,
- );
- register_taxonomy('research',$aryAttachedToPostTypes,$aryTaxonomyArgs);
- }
- add_action('init','childThemeSetup');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement