Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #424385

    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!

    #424386

    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.

    #424520

    Hi!

    Great, glad you fixed your problem. Please let us know if you should have any more questions.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.