• Hi,

    Your plugin is really great, and your support is awesome!

    I have problem with my custom post and connected custom taxonomy (both sites works on the same template, so both have registred the same elements).

    I guess it is some setting problem.

    My function.ph registration:

    
    function my_custom_post_materials() {
        $labels = array(
            'name'                => _x( 'Materia?y', 'post type general name' ),
            'singular_name'       => _x( 'Materia?', 'post type singular name' ),
            'add_new'             => _x( 'Dodaj nowy materia?', 'book' ),
            'add_new_item'        => __( 'Dodaj nowy materia?' ),
            'edit_item'           => __( 'Edytuj materia?' ),
            'rewrite'             => array( 'slug' => 'materia?y' ),
            'new_item'            => __( 'Nowy materia?' ),
            'all_items'           => __( 'Wszystkie materia?y' ),
            'view_item'           => __( 'Poka? materia?' ),
            'search_items'        => __( 'Przeszukaj materia?y' ),
            'not_found'           => __( 'Nie znaleziono materia?u' ),
            'not_found_in_trash'  => __( 'Nie znaleziono materia?u w Koszu' ),
            'parent_item_colon'   => '',
            'menu_name'           => 'Materia?y'
        );
        $args = array(
            'labels'        => $labels,
            'description'   => 'Zawiera wszystkie materia?y wspó?dzielone poprzez WP MU',
            'public'        => true,
            'menu_position' => 5,
            'supports'      => array( 'title', 'editor'),
            'has_archive'   => true,
            'capability_type'     => 'post',
            'can_export'            => true,
            'publicly_queryable'    => true
        );
        register_post_type( 'materialy', $args );
    }
    add_action( 'init', 'my_custom_post_materials' );
    
    function materials_taxonomy() {
    
        $labels = array(
            'name'                       => _x( 'Kategorie materia?ów', 'Taxonomy General Name', 'text_domain' ),
            'singular_name'              => _x( 'Kategoria materia?ów', 'Taxonomy Singular Name', 'text_domain' ),
            'menu_name'                  => __( 'Kategorie materia?ów', 'text_domain' ),
            'all_items'                  => __( 'Wszystkie', 'text_domain' ),
            'parent_item'                => __( 'Parent Item', 'text_domain' ),
            'parent_item_colon'          => __( 'Parent Item:', 'text_domain' ),
            'new_item_name'              => __( 'New Item Name', 'text_domain' ),
            'add_new_item'               => __( 'Add New Item', 'text_domain' ),
            'edit_item'                  => __( 'Edit Item', 'text_domain' ),
            'update_item'                => __( 'Update Item', 'text_domain' ),
            'view_item'                  => __( 'View Item', 'text_domain' ),
            'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),
            'add_or_remove_items'        => __( 'Add or remove items', 'text_domain' ),
            'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
            'popular_items'              => __( 'Popular Items', 'text_domain' ),
            'search_items'               => __( 'Search Items', 'text_domain' ),
            'not_found'                  => __( 'Not Found', 'text_domain' ),
            'no_terms'                   => __( 'No items', 'text_domain' ),
            'items_list'                 => __( 'Items list', 'text_domain' ),
            'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ),
        );
        $args = array(
            'labels'                     => $labels,
            'hierarchical'               => true,
            'public'                     => true,
            'show_ui'                    => true,
            'show_admin_column'          => true,
            'show_in_nav_menus'          => true,
            'show_tagcloud'              => true
        );
        register_taxonomy( 'materials_taxonomy', array( 'materialy' ), $args );
    
    }
    add_action( 'init', 'materials_taxonomy', 0 );
    

    Settings of plugin – all checked.

    If you could suggest something – it would be great.

    THX

    Raf

Viewing 1 replies (of 1 total)
  • Thread Starter RafaNat

    (@rafanat)

    Hi,

    I was wondering if you could give me any hint.
    Not sure if it is my mistake or if I should find another way.

    I will be gratefull for any reply.

    THX

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomies not copying’ is closed to new replies.