Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter juliussohn

    (@juliussohn)

    function event_post_type() {
    	$labels = array(
    		'name' => __('Veranstaltungen', 'filmnaechte_theme'),
    		'singular_name' => __('Veranstaltung', 'filmnaechte_theme'),
    
    	);
    
    	$args = array(
    
    		'labels' => $labels,
    		'public' => true,
    		'publicly_queryable' => true,
    		'show_ui' => true,
    		'show_in_menu' => true,
    		'query_var' => true,
    		'rewrite' => array('slug' => _x('veranstaltung', 'URL Slug', 'filmnaechte_theme')),
    		'capability_type' => 'post',
    		'has_archive' => _x('veranstaltungen', 'URL Slug', 'filmnaechte_theme'),
    		'hierarchical' => false,
    		'menu_position' => null,
    		'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt'),
    		'menu_icon' => 'dashicons-calendar',
    	);
    
    	register_post_type('event', $args);
    	flush_rewrite_rules();
    }
    add_action('init', 'event_post_type');
Viewing 1 replies (of 1 total)