Custompress fails to re-create custom content types.

I just switched to multisite and disabled all plugins beforehand. When I re-enabled custompress, custom post types didn’t get re-created. The PHP files are still there in the theme. But I can’t see the custom post types – the urls return 404s.

  • MrHoneyfoot
    • WPMU DEV Initiate

    And before you ask – I can see custompress in the network admin area – and the custom content types sub-tab shows an empty table. On the main site – I can see the custompress tab, but not the custom content types sub-tab.

    In summary:

    On network I can see:

    Content Types (although it is empty)

    Settings

    Import/Export

    On the main site I can see:

    Settings

    Import/Export

  • MrHoneyfoot
    • WPMU DEV Initiate

    In the main site “Import/Export” tab, I can select the custom content types, and generate the following:

    // Post Types Export code for CustomPress
    global $CustomPress_Core;
    $CustomPress_Core->import=array (
    'post_types' =>
    array (
    'radio_interview' =>
    array (
    'labels' =>
    array (
    'name' => 'Radio Interviews',
    'singular_name' => 'Radio Interview',
    ),
    'supports' =>
    array (
    'title' => 'title',
    'editor' => 'editor',
    'comments' => 'comments',
    ),
    'supports_reg_tax' =>
    array (
    'category' => '1',
    'post_tag' => '1',
    ),
    'capability_type' => 'post',
    'map_meta_cap' => false,
    'description' => '',
    'menu_position' => 50,
    'public' => true,
    'hierarchical' => true,
    'has_archive' => true,
    'rewrite' =>
    array (
    'with_front' => true,
    'feeds' => false,
    'pages' => true,
    ),
    'query_var' => true,
    'can_export' => true,
    'cf_columns' => NULL,
    ),
    'lecture' =>
    array (
    'labels' =>
    array (
    'name' => 'Lectures',
    'singular_name' => 'Lecture',
    ),
    'supports' =>
    array (
    'title' => 'title',
    'editor' => 'editor',
    'comments' => 'comments',
    ),
    'supports_reg_tax' =>
    array (
    'category' => '',
    'post_tag' => '',
    ),
    'capability_type' => 'post',
    'map_meta_cap' => false,
    'description' => '',
    'menu_position' => 50,
    'public' => true,
    'hierarchical' => false,
    'has_archive' => true,
    'rewrite' =>
    array (
    'with_front' => true,
    'feeds' => false,
    'pages' => true,
    ),
    'query_var' => true,
    'can_export' => true,
    'cf_columns' => NULL,
    ),
    'tv_interview' =>
    array (
    'labels' =>
    array (
    'name' => 'TV Interviews',
    'singular_name' => 'TV Interview',
    ),
    'supports' =>
    array (
    'title' => 'title',
    'editor' => 'editor',
    ),
    'supports_reg_tax' =>
    array (
    'category' => '',
    'post_tag' => '',
    ),
    'capability_type' => 'post',
    'map_meta_cap' => false,
    'description' => '',
    'menu_position' => 50,
    'public' => true,
    'hierarchical' => false,
    'has_archive' => true,
    'rewrite' =>
    array (
    'with_front' => true,
    'feeds' => false,
    'pages' => true,
    ),
    'query_var' => true,
    'can_export' => true,
    'cf_columns' => NULL,
    ),
    ),
    );

    Note: I can’t generate this on the network “Import/Export” page. Only the main site. Should I import these content types from the main site to the network?

  • MrHoneyfoot
    • WPMU DEV Initiate

    The export/import page also shows this:

    Import is currently disabled on this site. To enable add the line
    define('CT_ALLOW_IMPORT', true);
    to the wp-config.php file. Remove the line when it is no longer needed to prevent possible security problems.

    Should I make this change, then disable/re-enable the plugin again?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.