News
// Register Custom Post Type
function custom_post_type_news() {
$labels = array(
'name' => 'הודעות חדשות',
'singular_name' => 'הודעה חדשה',
'menu_name' => 'חדשות',
'name_admin_bar' => 'חדשות',
'parent_item_colon' => 'אב הודעה חדשה',
'all_items' => 'כל ההודעות החדשות',
'add_new_item' => 'הוסף הודעה חדשה',
'add_new' => 'הוסף הודעה חדשה',
'new_item' => 'הוסף הודעה חדשה',
'edit_item' => 'ערוך הודעה חדשה',
'update_item' => 'עדכן הודעה חדשה',
'view_item' => 'ראה הודעה חדשה',
'search_items' => 'חפשה הודעות חדשות',
'not_found' => 'לא נמצאו הודעות חדשות',
'not_found_in_trash' => 'לא נמצאו הודעות חדשות באשפה',
);
$args = array(
'label' => 'news',
'description' => 'Post Type News Description',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'news', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type_news', 0 );