Satenik Ghazaryan
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] Translating custom taxonomy namesin admin everything is ok but in front end it is not showing portfolio item translation … ??
any help .. please
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] Translating custom taxonomy namesguys I’m adding in theme function.php file but wthout result
add_action('your_custom_taxonomy_add_form', 'qtrans_modifyTermFormFor'); add_action('your_custom_taxonomy_edit_form', 'qtrans_modifyTermFormFor'); my custom taxonomy is: <?php /** Penguin Framework Module - Portfolio Post Copyright (c) 2012 Activetofocus @url https://penguin.activetofocus.com @package Penguin @version 1.0 **/ class PenguinModulePortfolioPost { public $id = "portfolio"; /** * PenguinModulePortfolioPost */ function PenguinModulePortfolioPost() { add_action( 'init', array($this,'portfolio_register') ); } // Register portfolio function portfolio_register(){ $labels = array( 'name' => _x('Portfolios', 'post type general name','newidea'), 'singular_name' => _x('Portfolios', 'post type singular name','newidea'), 'add_new' => _x('Add New', 'Portfolios','newidea'), 'add_new_item' => __('Add New','newidea'), 'edit_item' => __('Edit Portfolio','newidea'), 'new_item' => __('New Portfolio','newidea'), 'all_items' => __('All Portfolios','newidea'), 'view_item' => __('View Portfolios','newidea'), 'search_items' => __('Search Portfolio','newidea'), 'not_found' => __('No portfolio found','newidea'), 'not_found_in_trash' => __('No portfolio found in Trash','newidea'), 'parent_item_colon' => '', 'menu_name' => 'Portfolios' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array('slug'=>$this->id,'with_front'=>false), 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail' ) ); register_post_type($this->id,$args); $this->register_categories(); } //Register Portfolio categories function register_categories(){ $labels = array( 'name' => _x( 'Portfolio Categories', 'taxonomy general name' ,'newidea'), 'singular_name' => _x( 'Portfolio Category', 'taxonomy singular name' ,'newidea'), 'search_items' => __( 'Search Portfolio Categories' ,'newidea'), 'all_items' => __( 'All Portfolio Categories' ,'newidea'), 'parent_item' => __( 'Parent Category' ,'newidea'), 'parent_item_colon' => __( 'Parent Category:' ,'newidea'), 'edit_item' => __( 'Edit Portfolio Category' ,'newidea'), 'update_item' => __( 'Update Portfolio Category' ,'newidea'), 'add_new_item' => __( 'Add Portfolio Category' ,'newidea'), 'new_item_name' => __( 'New Portfolio Category' ,'newidea'), 'menu_name' => __( 'Portfolio Categories' ,'newidea') ); register_taxonomy($this->id.'_categories',array($this->id), array( 'hierarchical' => true, 'labels' => $labels, 'label_sing' => __( 'Portfolio Category','newidea'), 'public' => true, 'show_in_nav_menus' => true, )); } } ?>
[Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
what should be written, please help
Forum: Plugins
In reply to: [qTranslate] portfolio is not translatingI forgot to say that I’m using custom taxonomy so my portfolio is not default portfolio, it is added by me,
Thanks I’ll try I’m sure it will work.
Viewing 4 replies - 1 through 4 (of 4 total)