CPT not multilingual problem with permalink
-
Hi,
I have a problem with permalinks.
I have a CPT product not multilingual and I have a list of these products in a page this is ok in all languages but to enter the product detail I change the default language
Sample: I have three languages (ES (defautl),EN,FR) and surf the web in EN in the page catalog list the products (CPT not multilingual))
$args=array(
‘post_type’=> array(‘product’),
‘orderby’ => ‘date’,
‘order’ => ‘desc’,
);
$aItems = get_posts($args);
foreach ($aItems as $item) {
$href = get_permalink($item->ID);
……the problem is the href variable points to default language(ES) changing me the language of the page
CPT is not possible to have ads ?
Thanks!
The topic ‘CPT not multilingual problem with permalink’ is closed to new replies.