• Reuhno

    (@laboiteare)


    Hello, I have a problem with Polylang and your extension.

    The downloads are not correctly translated.

    On Polylang’s recommendation, I even added this snippet:

    add_filter( 'pll_get_post_types', 'add_cpt_to_pll', 10, 2 );

    function add_cpt_to_pll( $post_types, $is_settings ) {
    if ( $is_settings ) {
    unset( $post_types['dlm_download'] );
    } else {
    $post_types['dlm_download'] = 'dlm_download';
    }
    return $post_types;
    }

    To be sure that the CPT is added correctly.

    This does not change much, because even if it is linked to another language on the single download

    • The flags do not appear in the download list (wp-admin/edit.php?post_type=dlm_download)
    • On the front, all languages ??are displayed for the same document

    Could you please see what is happening?

    (The fault appears on an old site from WPML, but also on a new installation, with Polylang Pro)

Viewing 1 replies (of 1 total)
  • Hello,
    Sebastien from Polylang helpdesk here.
    The column issue comes from Download Monitor 5.0. In DLM 4.9.14, I do not reproduce.
    In both version the [downloads] does not filter download by language.

    DLM 5.0.14

    If I downgrade to DLM 4.9.14

    Do not hesitate to contact us at https://polylang.pro/support in case you need a technical help with Polylang.

    Regards

    • This reply was modified 2 weeks, 1 day ago by Sébastien SERRE. Reason: wrong image inserted
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.