Created
November 13, 2012 17:28
-
-
Save esgy/4067158 to your computer and use it in GitHub Desktop.
create new post types wordpress
This file contains 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
// Using JW_Post_Type.php | |
$product = new PostType("movie"); | |
$product->add_taxonomy('Actor'); | |
$product->add_taxonomy('Director'); | |
$product->add_meta_box('Movie Info', array( | |
'name' => 'text', | |
'rating' => 'text', | |
'review' => 'textarea', | |
'Profile Image' => 'file' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment