Skip to content

Custom Taxonomy Post? #50

@FisherWooD

Description

@FisherWooD

Hi I use jeoblogs and work very very good.

But I have small problem my theme have custom Taxonomy areas so I cannot post this area .S

my theme register custom Taxonomy codes

function add_custom_taxonomies() {
register_taxonomy('imdb', 'post', array('hierarchical' => false, 'labels' => array('name' => _x('IMDB', 'taxonomy general name'), 'singular_name' => _x('IMDB Puanı', 'taxonomy singular name'), 'search_items' => __('IMDB Puanı ara'), 'all_items' => __('Tüm IMDB Puanları'), 'edit_item' => __('IMDB Puanı düzenle'), 'update_item' => __('IMDB Puanı güncelle'), 'add_new_item' => __('Yeni IMDB Puanı ekle'), 'new_item_name' => __('Yeni IMDB Puanı'), 'menu_name' => __('IMDB Puanları'),), 'rewrite' => array('slug' => 'imdb', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/locations/"
'hierarchical' => false
// This will allow URL's like "/locations/boston/cambridge/"
),));
register_taxonomy('oyuncu', 'post', array('hierarchical' => false, 'labels' => array('name' => _x('Oyuncu', 'taxonomy general name'), 'singular_name' => _x('Oyuncu', 'taxonomy singular name'), 'search_items' => __('Oyuncu ara'), 'all_items' => __('Tüm oyuncular'), 'edit_item' => __('Oyuncu düzenle'), 'update_item' => __('Oyuncu güncelle'), 'add_new_item' => __('Yeni oyuncu ekle'), 'new_item_name' => __('Yeni oyuncu adı'), 'menu_name' => __('Oyuncular'),), 'rewrite' => array('slug' => 'oyuncu', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/locations/"
'hierarchical' => false
// This will allow URL's like "/locations/boston/cambridge/"
),));
register_taxonomy('yapim', 'post', array('hierarchical' => false, 'labels' => array('name' => _x('Yapım Yılı', 'taxonomy general name'), 'singular_name' => _x('Yapım Yılı', 'taxonomy singular name'), 'search_items' => __('Yapım Yılı ara'), 'all_items' => __('Tüm yıllar'), 'edit_item' => __('Yapım Yılı düzenle'), 'update_item' => __('Yapım Yılı güncelle'), 'add_new_item' => __('Yeni Yapım Yılı ekle'), 'new_item_name' => __('Yeni Yapım Yılı'), 'menu_name' => __('Yapım Yılı'),), 'rewrite' => array('slug' => 'yapim', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/locations/"
'hierarchical' => false
// This will allow URL's like "/locations/boston/cambridge/"
),));
register_taxonomy('yonetmen', 'post', array('hierarchical' => false, 'labels' => array('name' => _x('Yönetmen', 'taxonomy general name'), 'singular_name' => _x('Yönetmen', 'taxonomy singular name'), 'search_items' => __('Yönetmen ara'), 'all_items' => __('Tüm yönetmenler'), 'edit_item' => __('Yönetmen düzenle'), 'update_item' => __('Yönetmen güncelle'), 'add_new_item' => __('Yeni yönetmen ekle'), 'new_item_name' => __('Yeni yönetmen adı'), 'menu_name' => __('Yönetmenler'),), 'rewrite' => array('slug' => 'yonetmen', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/locations/"
'hierarchical' => false
// This will allow URL's like "/locations/boston/cambridge/"
),));
}
add_action('init', 'add_custom_taxonomies', 0);

And My trying codes

    Dim trms = New Term() {New Term() With { _

.Taxonomy = "imdb", _
.Terms = TXTPUAN.Text.Trim.Split(",") _
}, New Term() With { _
.Taxonomy = "oyuncu", _
.Terms = TXTCATS.Text.Trim.Split(",") _
}, New Term() With { _
.Taxonomy = "yapim", _
.Terms = TXTYIL.Text.Trim.Split(",") _
}, New Term() With { _
.Taxonomy = "yonetmen", _
.Terms = TXTDIRECTOR.Text.Trim.Split(",") _
}}

post.Terms = trms

Help me please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions