Created
October 11, 2012 19:14
-
-
Save gicolek/3874810 to your computer and use it in GitHub Desktop.
Custom Posts initialization
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
require_once STYLESHEETPATH . '/skeleton/posts.class'; | |
if ( class_exists( 'Skeleton_Posts' ) ) { | |
$args = array( | |
'post1' => array( | |
'name' => 'Slider', | |
'labels' => array( | |
'singular' => 'Slider', | |
'plural' => 'Slider entries', | |
), | |
'args' => array( | |
'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'thumbnail', 'excerpt' ), | |
), | |
), | |
'post2' => array( | |
'name' => 'Services', | |
'labels' => array( | |
'singular' => 'Service', | |
'plural' => 'Services', | |
), | |
'args' => array( | |
'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'thumbnail' ), | |
), | |
), | |
'post3' => array( | |
'name' => 'Projects', | |
'labels' => array( | |
'singular' => 'Project', | |
'plural' => 'Projects', | |
), | |
'args' => array( | |
'supports' => array( 'title', 'editor', 'author', 'custom-fields', 'thumbnail', 'excerpt' ), | |
), | |
), | |
); | |
$posts = new Skeleton_posts( $args ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment