• 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!

    https://wordpress.org/plugins/polylang/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘CPT not multilingual problem with permalink’ is closed to new replies.