Created
March 11, 2014 12:06
-
-
Save dwburns/9484336 to your computer and use it in GitHub Desktop.
q&a register_post_type
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
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