Breaks nav menu

This topic contains 3 replies, has 2 voices, and was last updated by  David 3 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2295

    Andrew
    function tcp_add_post_types_in_category_and_tag_template($query) {
    
      if (!$query->is_main_query()) return $query;
    
      ... existing code ...
    #2297

    Dinesh
    Keymaster

    Hi Andrew,

    Can you let me know about you issues in details ?

    Thanks

    #2785

    David

    Hi Dinesh, I’m not sure about Andrew’s issue, but I think it’s because the code is only looking at the main wp query and not a custom one, hence it might break, am I right (I’m still learning 🙂 )?

    This issue I had with my menu breaking on category pages was solved below by Jeremy and Steve’s comments.

    http://dineshkarki.com.np/forums/topic/causes-main-menu-to-disappear

    Is there an upgrade to your plug-in that will fix this?

    Thanks.

    David

    #2786

    David

    Sorry I didn’t mean to hi-jack, just thought the issues are related.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Breaks nav menu’ is closed to new replies.