Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96616

adtowle on "Menus not displaying on archive pages"

$
0
0

Hi, this is the first problem I have countered that I haven't been able to solve by searching this forum before. I have found a thread with the same problem

http://wordpress.org/support/topic/wp-nav-menu-dissapears-in-category-pages-1?replies=21

but the solution just lists all the posts from the primary menu only, without any styling.

*INFO*

I am currently working on a large project, built on _s as a foundation. The website I'm creating uses multiple menus that are registered in functions.php file.

*PROBLEM*

All the menus are working fine on all the pages EXCEPT the archive page.

I have a page template which displays all the posts in their separate categories, on this page, the menus showing and working as desired, however on a category archive page, such as the Entertainment category, all the menus disappear.

At the moment I am currently using:

<?php wp_nav_menu( array( 'theme_location' => 'Menu Name' ) ); ?>

To display my menus. When I use:

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

The menus appear but list all pages, instead of the chosen pages.

I am stumped, and I can't think of nor find a solution, and any help would be much, much appreciated.

Thanks,
Adam


Viewing all articles
Browse latest Browse all 96616

Trending Articles