diff --git a/wp-content/themes/ccat/includes/cpt/contributor.php b/wp-content/themes/ccat/includes/cpt/contributor.php index a31c6fc..33cc1ee 100644 --- a/wp-content/themes/ccat/includes/cpt/contributor.php +++ b/wp-content/themes/ccat/includes/cpt/contributor.php @@ -38,16 +38,13 @@ function ccat_contributor_register_post_type() { 'item_scheduled' => __( "Contributor scheduled.", 'ccat' ), 'item_updated' => __( "Contributor updated.", 'ccat' ), ), - 'public' => true, + 'public' => false, 'hierarchical' => true, 'show_ui' => true, 'show_in_nav_menus' => false, 'supports' => array( 'title', 'thumbnail', 'author', 'excerpt', 'revisions' ), 'has_archive' => false, - 'rewrite' => array( - 'slug' => 'membre', - 'with_front' => false, - ), + 'rewrite' => false, 'query_var' => true, 'menu_icon' => 'dashicons-art', 'show_in_rest' => true, diff --git a/wp-content/themes/ccat/includes/cpt/membership.php b/wp-content/themes/ccat/includes/cpt/membership.php index a91a169..3661a0e 100644 --- a/wp-content/themes/ccat/includes/cpt/membership.php +++ b/wp-content/themes/ccat/includes/cpt/membership.php @@ -38,13 +38,17 @@ function ccat_membership_register_post_type() { 'item_scheduled' => __( "Membership scheduled.", 'ccat' ), 'item_updated' => __( "Membership updated.", 'ccat' ), ), - 'public' => false, + 'public' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_nav_menus' => false, 'supports' => array( 'title', 'thumbnail', 'author', 'revisions' ), 'has_archive' => false, - 'rewrite' => false, + 'rewrite' => array( + 'slug' => 'membre', + 'with_front' => false, + + ), 'query_var' => true, 'menu_icon' => 'dashicons-id', 'show_in_rest' => true,