FAQ
Frequently Asked Questions
// Register Custom Post Type function wcd_faq() { $labels = array( 'name' => 'FAQs', 'singular_name' => 'FAQ', 'menu_name' => 'FAQs', 'name_admin_bar' => 'FAQ', 'archives' => 'FAQ Archives', 'attributes' => 'FAQ Attributes', 'parent_item_colon' => 'Parent FAQ:', 'all_items' => 'All FAQs', 'add_new_item' => 'Add New FAQ', 'add_new' => 'Add New', 'new_item' => 'New FAQ', 'edit_item' => 'Edit FAQ', 'update_item' => 'Update FAQ', 'view_item' => 'View FAQ', 'view_items' => 'View FAQs', 'search_items' => 'Search FAQ', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into FAQ', 'uploaded_to_this_item' => 'Uploaded to this FAQ', 'items_list' => 'FAQs list', 'items_list_navigation' => 'FAQs list navigation', 'filter_items_list' => 'Filter FAQs list', ); $args = array( 'label' => 'FAQ', 'description' => 'Frequently Asked Questions', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-info-outline', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'faq', $args ); } add_action( 'init', 'wcd_faq', 0 );