My navigation menu started disappearing on category pages. First I suspected there was something with the header or menu location, I have double, triple checked everything and I was pulling my hair out trying to find a solution. Turns out, my attempt to order posts by a custom field interfered with the menu.

The key is the above line, and here is the rest of the code for example


Leave a Reply

Your email address will not be published.