Support » Plugin: Polylang » Bug? Menu disappears on "paged" and category pages

  • Hi there,

    I have a problem with wp_list_pages and wp_nav_menu and could not found a working solution.

    My original code looks like:

    <ul class="menu right">
    <?php wp_list_pages('title_li=&child_of=892&depth=1&sort_column=menu_order&exclude=796,1041,5801') ?>

    This was working fine with WPML but not with Polylang. The menu is shown on the index page (homepage) but NOT on any “paged” index sites. Furthermore search, category or tag pages (archive.php) the menu isn’t shown. Does anybody has an idea, why and how to solve?

    I also tried to use WordPress menu instead. Therefore I did:

    functions.php

    add_theme_support( 'menus' );
    add_action('init', 'register_theme_menus');

    function register_theme_menus() {
    register_nav_menus(
    array(
    'primary' => __('Top Menu', ''),
    'secondary' => __('Right Menu', '')
    )
    );
    }

    header.php

    wp_nav_menu(
    array(
    'theme_location' => 'secondary',
    'container' => false,
    'menu_class' => 'menu right',
    'fallback_cb' => false
    )
    );

    But here is the same: the menu is shown in all languages but when I change the default language and go e.g. the category page the menu disappears.

    I found several approaches in forums which are some years old, but nothing is working.

    What is the problem here? BTW. when I disable Polylang it seems to work fine….

    regards,
    Lars

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

Viewing 1 replies (of 1 total)
  • well, I made some further checks and have deactivated Polylang. Everything works fine w/o Polylang. But when I activate PL again, the menu disappears on paged pages 🙁

    any idea, please?

Viewing 1 replies (of 1 total)
  • The topic ‘Bug? Menu disappears on "paged" and category pages’ is closed to new replies.