Skip to content

Instantly share code, notes, and snippets.

@dwburns
Created March 11, 2014 12:06
Show Gist options
  • Save dwburns/9484336 to your computer and use it in GitHub Desktop.
Save dwburns/9484336 to your computer and use it in GitHub Desktop.
q&a register_post_type
register_post_type( 'qa_faqs',
array(
'labels' => array(
'name' => __( 'FAQs', 'qa-free' ),
'singular_name' => __( 'FAQ', 'qa-free' ),
'edit_item' => __( 'Edit FAQ', 'qa-free'),
'add_new_item' => __( 'Add FAQ', 'qa-free')
),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'rewrite' => array( 'slug' => $qaplus_options['faq_slug'], 'with_front' $
'taxonomies' => array( 'FAQs '),
'supports' => array('title','editor'),
'has_archive' => true
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment