Trouble creating a custom menu for blog page
-
Thanks in advance for all your help and answers!
I know how to use WordPress for the most part, but I don’t know much about the “behind-the-scenes” stuff.I am trying to create a custom navigation for my just my blog page (all the other pages will use the “primary_nav”) in which to put categories instead of pages. I have read the other posts on doing this, but I think its not working because its on the “blog” page (I’ve tried it on other pages, and it works fine.)
here is my code:
<?php if(is_page('blog')) wp_nav_menu( array( 'theme_location' => 'blog_navigation' ) ); ?>
// Register Primary Navigation Menu register_nav_menus( array( 'primary_nav' => 'Primary Menu', // You can add more menus here 'blog_navigation' => 'Blog Navigation', ) );
I already created this menu under “menus” under “Appearance”.
But every time I do this it just displays the “primary_nav” instead of the “blog_navigation”. You can see it here: N4moredesign.com/blogWhat am I doing wrong?
- The topic ‘Trouble creating a custom menu for blog page’ is closed to new replies.