Quantcast
Viewing all articles
Browse latest Browse all 31591

traone on "wp_get_nav_menu_items() returns an empty array under tags archive"

Just curious, is someone else experiencing this too?

I have three NavMenus and for some reason they are not displayed when i go to the tags archive. This doesn't work on my custom theme nor on TwentyThirteen, so it seems to be a core feature/bug.

Here is my simple snippet that fetches the menus. Works fine on pages, posts and frontpage, but not in tags archive.

http://pastebin.com/sTmHeNBR

Steps to reproduce:
1. Create a nav menu and add some items to it
2. Call wp_get_nav_menu_items('MenuName') on tags or category archive.


Viewing all articles
Browse latest Browse all 31591

Trending Articles