• Hello!

    I am using Multilingual Press and Network Site Plugin to make multilanguige site. My WP site has static home page, blog page, another pages and one portfolio page.

    I defined portfolio page as custom post type and added custom taxonomies to this portfolio custom post type.

    register_post_type('portfolio', array(
    					'label' => 'Projects',
    					'description' => '',
    					'public' => true,
    					'show_ui' => true,
    					'show_in_menu' => true,
    					'capability_type' => 'page',
    					'hierarchical' => true,
    					'rewrite' => array('slug' => 'portfolio'),
    					'query_var' => true,
    					'has_archive' => true,
    					'exclude_from_search' => false,
    					'supports' => array('title','editor','excerpt','custom-fields','comments','revisions','thumbnail','author','page-attributes',),
    					'labels' => array (
    							  'name' => 'Projects',
    							  'singular_name' => 'Project',
    							  'menu_name' => 'Projects',
    							  'add_new' => 'Add Project',
    							  'add_new_item' => 'Add New Project',
    							  'edit' => 'Edit',
    							  'edit_item' => 'Edit Project',
    							  'new_item' => 'New Project',
    							  'view' => 'View Project',
    							  'view_item' => 'View Project',
    							  'search_items' => 'Search Projects',
    							  'not_found' => 'No Projects Found',
    							  'not_found_in_trash' => 'No Projects Found in Trash',
    							  'parent' => 'Parent Project',
    							),
    					)
    		);
    register_taxonomy(
    			'cat',
    			array (0 => 'portfolio',),
    			array(
    				'hierarchical' => true,
    				'label' => 'Categories',
    				'show_ui' => true,
    				'query_var' => true,
    				'rewrite' => array('slug' => 'cat'),
    				'singular_label' => 'Category'
    				)
    		);
    register_taxonomy(
    			'tags',
    			array (0 => 'portfolio',),
    			array(
    				'hierarchical' => false,
    				'label' => 'Tags',
    				'show_ui' => true,
    				'query_var' => true,
    				'rewrite' => array('slug' => 'tags'),
    				'singular_label' => 'Tag'
    				)
    		);

    Problem is to display correctly categories in this custom post type page. WP makes links like http://domain.com/blog/portfolio/some-project !
    Why it goes to /blog? The same are about ‘cat’ and ‘tags’.
    If I want to filter to specific portfolio category, WP dont find any templates I created (cat.php, archive-cat.php, portfolio-cat.php), it shows 404 page.

    How to resolve this?

    Best Regards.
    Leo.

    [moderator: topic closed per forum rules – http://codex.wordpress.org/Forum_Welcome#Offering_to_Pay ]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[10$ for resolving] Custom post type taxonomies in Multilingual Press’ is closed to new replies.