Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created November 19, 2010 20:59
Show Gist options
  • Save iammerrick/707160 to your computer and use it in GitHub Desktop.
Save iammerrick/707160 to your computer and use it in GitHub Desktop.
add_action( 'init', 'create_post_type');
function create_post_type() {
register_post_type('faqs',
array(
'labels' => array(
'name' => __( 'FAQs' ),
'singular_name' => __( 'FAQ' )
),
'public' => true
)
);
// You will declare custom taxonomies in a similar hook here or other post types.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment