WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] wp_nav_manu - translated menus would not show (2 posts)

  1. dvarga
    Member
    Posted 1 year ago #

    Hello polylang users,

    I have a problem with the plugin. After reading the docs the following should work:
    in functions.php

    register_nav_menus(array(
        'gc_nav_top' => "Header Navigation Menu"
    ));

    in the theme file (header.php):

    wp_nav_menu(
                                array('theme-location' => 'gc_nav_top',
                                    'container' => 'nav',
                                    'container_class' => 'grid_9')
                        );

    On the admin UI I have defined 2 menus 1 for both languages. On the languages settings page I have defined which menu should be shown for which language and yet it fails.

    Translated posts/pages show up properly... Any tips why?

    http://wordpress.org/extend/plugins/polylang/

  2. dvarga
    Member
    Posted 1 year ago #

    Solution:
    theme-location should really read as theme_location

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic