wp_nav_menu doesn't work (wordpress theme)

Bug #672602 reported by madmed
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Community Web Themes
Invalid
Undecided
Unassigned
Ubuntu Website - OBSOLETE
Invalid
Undecided
Unassigned

Bug Description

wp_nav_menu doesn't work, I fixed it by changing this in the functions.php:

<ul id="primary-header-menu">
                <?php
                    dynamic_sidebar('primary-header-menu');
                ?>
</ul>

to this:

<ul id="primary-header-menu">
                <?php
                    wp_nav_menu('primary-header-menu');
                ?>
</ul>

Tags: wordpress
madmed (medbelh)
summary: - wp_nav_menu doesn't work
+ wp_nav_menu doesn't work (wordpress theme)
Changed in ubuntu-website:
status: New → Invalid
tags: added: wordpress
Revision history for this message
Stas Sușcov (sushkov) wrote :

The code is correct, it creates a widget where you can define any kind of menu and drag-n-drop it there. Calling `wp_nav_menu` means we have to stick to a predefined navigation menu, which is wrong from a user perspective.

Changed in ubuntu-community-webthemes:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.