Skip to content

Instantly share code, notes, and snippets.

@gicolek
Created October 11, 2012 19:14
Show Gist options
  • Save gicolek/3874810 to your computer and use it in GitHub Desktop.
Save gicolek/3874810 to your computer and use it in GitHub Desktop.
Custom Posts initialization
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