milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
918 stars 196 forks source link

Nav walker issue? Nav disappears #301

Open adambundy opened 10 years ago

adambundy commented 10 years ago

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!