New Landing How can we help? Themeforest Theme Support Joyn New custom post types: "swift page builder" disappears Reply To: New custom post types: "swift page builder" disappears

#171526
mengeco
Member
Post count: 558

In fonction.php, I added a new statut pages (single code):

add_action( 'init', 'create_post_type' );
function create_post_type() {
  register_post_type( 'avocats',
    array(
      'labels' => array(
        'name' => __( 'Avocats' ),
        'singular_name' => __( 'Avocats' )
      ),
      'public' => true
    )
  );
register_taxonomy( 'statut', 'avocats', array( 'hierarchical' => true, 'label' => 'Statut', 'query_var' => true, 'rewrite' => true ) );
}

I named this statut “Avocats” (see screenshot “bt-swift-page-builder-missing”)

But when I create a new page (eg:”Test page avocat”), it works but the Swift Page Builder button does not appear.