new0
Neues Wissen einreichen

CPT erstellen

/**
   * Register custom post type businesssegment
   */
  function lang_register_cpt_jobs() {
    
    $labels = array(
      'name' => __( 'Jobs', 'avia_framework' ),
      'singular_name' => __( 'Job', 'avia_framework' ),
      'menu_name' => __( 'Jobs', 'avia_framework' ),
      'add_new' => __( 'Hinzufügen', 'avia_framework' ),
      'add_new_item' => __( 'Job hinzufügen', 'avia_framework' ),
      'edit_item' => __( 'Job bearbeiten', 'avia_framework' ),
      'new_item' => __( 'Neues Job', 'avia_framework' ),
      'view_item' => __( 'Zeige Job', 'avia_framework' ),
      'search_items' => __( 'Suche Jobs', 'avia_framework' ),
      'not_found' => __( 'Keine Jobs gefunden', 'avia_framework' ),
      'not_found_in_trash' => __( 'Keine Jobs im Papierkorb gefunden', 'avia_framework' ),
      'parent_item_colon' => __( 'Eltern-Jobs', 'avia_framework' )
    );
    'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields',  $args = array( 'labels' => $labels, 'hierarchical' => false, 'supports' => array( ),
'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'has_archive' => false, 'query_var' => true, 'can_export' => true, // 'rewrite' => array( 'slug' => __( 'jobs', 'avia_framework' ) ), 'capability_type' => 'post', 'menu_icon' => 'dashicons-businessman', ); register_post_type( 'jobs', $args ); } add_action( 'init', 'lang_register_cpt_jobs', 5 );