Custom post type and Taxonomy
-
Hi, I have a problem with MLS
I have two post types and two taxonomies than I want to connect.1. site is sr_RS (serbian) and it is primary site.
I have created post type ‘projekat’ (this is his slug) and taxonomy ‘kategorija-projekta’ (also his slug)2. site is en_US (english)
post type ‘project’ and taxonomy ‘project-category’I want to connect ‘projekat’ with ‘project’ and ‘kategorija-projekta’ with ‘project-category’
I am using this code
function my_msls_options_get_permalink( $url, $language ) { if ( 'en_US' == $language ) { $url = str_replace( '/projekat/', '/project/', $url ); $url = str_replace( '/kategorija-projekta/', '/project-category/', $url ); } return $url; } add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );
But it does not work.
Need Help! PleaseAlso I am using plugin called Types (v1.5.5) to create post types and taxonomies and in wp-config I have defined
define( 'WPLANG', 'sr_RS' );
- The topic ‘Custom post type and Taxonomy’ is closed to new replies.