Created
August 4, 2012 22:45
-
-
Save zanematthew/3260411 to your computer and use it in GitHub Desktop.
Sample Post Type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$event = new Events(); | |
$event->post_type = array( | |
array( | |
'name' => 'Race Event', | |
'type' => 'events', | |
'has_one' => 'tracks', // add support 'has_many' => 'other_cpt' | |
'rewrite' => array( | |
'slug' => 'events' | |
), | |
'supports' => array( | |
'title', | |
'editor', | |
'comments' | |
), | |
'taxonomies' => array( | |
'type', | |
'bmx_rs_tag', | |
'attendees' | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment