Hi,
I made a template to filter artist’s work by medium. The page is working fine as far as displaying the correct artists when a medium is chosen. I made it by editing archive.php and saved as taxonomy-medium.php in my child theme. I also created a custom menu in the sidebar so viewers could select a medium.
Everything seems to be working fine except for one thing. The main navigation menu and the custom menu in the sidebar are not displayed. If I look at the source code, the surrounding divs are there, but no html was rendered for the menus.
This seems so unrelated, but the menus work everywhere else. Do you have any idea why the menus are not being rendered?
Thank you!
I figured it out.
I have a function to sort by meta value. I had to replace is_main_query() with $query->is_main_query(). Evidently that messes with the menus.