business acf
// Register Custom Post Type
function business() {
$labels = array(
'name' => _x( 'עסקים', 'Post Type General Name', 'business' ),
'singular_name' => _x( 'עסק', 'Post Type Singular Name', 'business' ),
'menu_name' => __( 'לוח עסקים', 'business' ),
'name_admin_bar' => __( 'לוח עסקים', 'business' ),
'archives' => __( 'ארכיון פריט', 'business' ),
'attributes' => __( 'מאפייני פריט', 'business' ),
'parent_item_colon' => __( 'הורי הפריט:', 'business' ),
'all_items' => __( 'כל הפריטים', 'business' ),
'add_new_item' => __( 'הוסף פריט חדש', 'business' ),
'add_new' => __( 'הוסף חדש', 'business' ),
'new_item' => __( 'פריט חדש', 'business' ),
'edit_item' => __( 'ערוך פריט', 'business' ),
'update_item' => __( 'עדכן פריט', 'business' ),
'view_item' => __( 'צפה בפריט', 'business' ),
'view_items' => __( 'צפה בפריטים', 'business' ),
'search_items' => __( 'חפש פריט', 'business' ),
'not_found' => __( 'לא נמצא', 'business' ),
'not_found_in_trash' => __( 'לא נמצא בפח האשפה', 'business' ),
'featured_image' => __( 'תמונה ראשית', 'business' ),
'set_featured_image' => __( 'הגדר תמונה ראשית', 'business' ),
'remove_featured_image' => __( 'הסר תמונה ראשית', 'business' ),
'use_featured_image' => __( 'השתמש בתמונה ראשית', 'business' ),
'insert_into_item' => __( 'הכנס לתוך הפריט', 'business' ),
'uploaded_to_this_item' => __( 'העלאה לפריט זה', 'business' ),
'items_list' => __( 'רשימת פריטים', 'business' ),
'items_list_navigation' => __( 'ניווט רשימת פריטים', 'business' ),
'filter_items_list' => __( 'סינון רשימת פריטים', 'business' ),
);
$args = array(
'label' => __( 'עסק', 'business' ),
'description' => __( 'Post Type Description', 'business' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-hammer',
'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( 'business', $args );
}
add_action( 'init', 'business', 0 );