adding jobs post type
This commit is contained in:
parent
dd421845b6
commit
68d84424ba
|
|
@ -309,6 +309,7 @@ function my_new_admin_menu_order($menu_order)
|
|||
'edit.php?post_type=brochures' => 3,
|
||||
'edit.php?post_type=fiches-infos' => 4,
|
||||
'edit.php?post_type=vocabulaire' => 5,
|
||||
'edit.php?post_type=jobs' => 10,
|
||||
);
|
||||
// helper function to move an element inside an array
|
||||
function move_element(&$array, $a, $b)
|
||||
|
|
|
|||
|
|
@ -131,6 +131,24 @@ function create_posttype()
|
|||
'supports' => array('title', 'custom-fields'),
|
||||
)
|
||||
);
|
||||
register_post_type(
|
||||
'jobs',
|
||||
array(
|
||||
'labels' => array(
|
||||
'name' => __('Jobs', 'homegrade-theme__texte-backoffice'),
|
||||
'singular_name' => __('Job', 'homegrade-theme__texte-backoffice')
|
||||
),
|
||||
'public' => true,
|
||||
'has_archive' => true,
|
||||
'rewrite' => array('slug' => 'fiche'),
|
||||
'show_in_rest' => true,
|
||||
'menu_icon' => 'dashicons-id-alt',
|
||||
'menu_position' => 5.1,
|
||||
'supports' => array('title', 'custom-fields'),
|
||||
'supports' => array('title', 'editor', 'custom-fields', 'page-attributes'),
|
||||
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
add_action('init', 'create_posttype');
|
||||
|
|
|
|||
|
|
@ -1,6 +1,13 @@
|
|||
/* body {
|
||||
background: red !important;
|
||||
} */
|
||||
|
||||
.edit-post-visual-editor__post-title-wrapper {
|
||||
h1 {
|
||||
font-weight: revert;
|
||||
font-size: revert;
|
||||
}
|
||||
}
|
||||
#menu-posts {
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user