Linköpingseskadern

Bli medlem

Ladda upp filer till klubbens dokumentarkiv


add_action( 'acf/include_fields', function() { if ( ! function_exists( 'acf_add_local_field_group' ) ) { return; } acf_add_local_field_group( array( 'key' => 'group_677c0f834b3b1', 'title' => 'File upload', 'fields' => array( array( 'key' => 'field_677c0f83fef2d', 'label' => 'Filuppladdning', 'name' => 'filuppladdning', 'aria-label' => '', 'type' => 'file', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'array', 'library' => 'all', 'min_size' => '', 'max_size' => '', 'mime_types' => '', 'allow_in_bindings' => 0, ), array( 'key' => 'field_677c102f83e52', 'label' => 'Beskrivning', 'name' => 'beskrivning', 'aria-label' => '', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'maxlength' => '', 'allow_in_bindings' => 0, 'placeholder' => '', 'prepend' => '', 'append' => '', ), array( 'key' => 'field_677c104283e53', 'label' => 'Etikett', 'name' => 'etikett', 'aria-label' => '', 'type' => 'taxonomy', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'taxonomy' => 'document_tag', 'add_term' => 1, 'save_terms' => 0, 'load_terms' => 0, 'return_format' => 'id', 'field_type' => 'radio', 'allow_null' => 0, 'allow_in_bindings' => 0, 'bidirectional' => 0, 'multiple' => 0, 'bidirectional_target' => array( ), ), ), 'location' => array( array( array( 'param' => 'post_type', 'operator' => '==', 'value' => 'dokument', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => true, 'description' => '', 'show_in_rest' => 0, ) ); } ); add_action( 'init', function() { register_post_type( 'dokument', array( 'labels' => array( 'name' => 'Dokument', 'singular_name' => 'Dokument', ), 'public' => true, 'show_in_rest' => true, 'menu_icon' => 'dashicons-admin-post', 'supports' => array( 0 => 'title', 1 => 'custom-fields', 2 => 'author', ), 'taxonomies' => array( 0 => 'document_tag', ), 'can_export' => false, 'delete_with_user' => false, ) ); register_post_type( 'dokument', array( 'labels' => array( 'name' => 'Dokument', 'singular_name' => 'Dokument', ), 'public' => true, 'show_in_rest' => true, 'menu_icon' => 'dashicons-admin-post', 'supports' => array( 0 => 'title', 1 => 'custom-fields', 2 => 'author', ), 'taxonomies' => array( 0 => 'document_tag', ), 'can_export' => false, 'delete_with_user' => false, ) ); } );