Jump to content

Wordpress custom menus help


melting_dog

Recommended Posts

Hi all,

 

I am trying to add a series of custom menus to my Wordpress theme but they all return the same menu.

 

I have this in my functions.php

 

add_action('init', 'register_custom_menu');

function register_custom_menu() {

register_nav_menu('custom_menu', __('Custom Menu'));

register_nav_menu('specials_menu', __('Specials Menu'));

}

 

and this in the nav section of my header:

 

<?php wp_nav_menu(array('menu' => 'specials_menu')); ?>

<?php wp_nav_menu(array('menu' => 'custom_menu')); ?>

 

Can anyone tell me where I've gone wrong? I thought this was the way it was meant to work

 

Link to comment
https://forums.phpfreaks.com/topic/254523-wordpress-custom-menus-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.