Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav walker issue? Nav disappears #301

Open
adambundy opened this issue Aug 5, 2014 · 0 comments
Open

Nav walker issue? Nav disappears #301

adambundy opened this issue Aug 5, 2014 · 0 comments

Comments

@adambundy
Copy link

I am leveraging regular categories for a custom post type, so I've used the following to enable that post type for the category archives:

function tt_add_custom_types( $query ) {
  if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
    $query->set( 'post_type', array(
     'post', 'newsitems'
        ));
      return $query;
    }
}
add_filter( 'pre_get_posts', 'tt_add_custom_types' );

...this works to enable those custom posts to show on the category term archive pages, but oddly, the nav is blank here. ??? The walker seems to somehow break on these pages - I end up with an empty .top-bar-section div - nothing in it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant