Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Taxonomy Post? #50

Open
FisherWooD opened this issue Dec 29, 2015 · 0 comments
Open

Custom Taxonomy Post? #50

FisherWooD opened this issue Dec 29, 2015 · 0 comments

Comments

@FisherWooD
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant