Support » Plugin: Polylang » Default language without language code, pagination not works

  • Hello,

    I’m working on WP WooCommerce setup where having a default language without language code in url path, and the second languages with language code subdir in url.
    Pagination is properly working when loading the second language, while on the default(without language in path) is not functioning.
    I’ve tried to modify params in paginate_links array, in order to append output of the pll_current_language($value) still no results for it.

    Here is the pagination template from custom Woocomerce template.

    
    echo paginate_links( apply_filters( 'woocommerce_pagination_args', array(
            'base'         => esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ),
            'format'       => '',
            'add_args'     => false,
            'current'      => max( 1, get_query_var( 'paged' ) ),
            'total'        => $wp_query->max_num_pages,
            'prev_text'    => '←',
            'next_text'    => '→',
            'type'         => 'plain',
            'end_size'     => 3,
            'mid_size'     => 3,
        ) ) );

    Can you assist please with any instructions?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please have a look at the answer of “Is Polylang compatible with WooCommerce?” on https://wordpress.org/plugins/polylang/

    Hello thanks for responding,

    okay understand that, still as web shop I’m preparing is almost completely functional, will ask you for a hint regarding above.
    So, is there language query string that will work for this case to append pagination url’s as with ?language=en ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default language without language code, pagination not works’ is closed to new replies.