Take the 2-minute tour ×  I'm working on a project where I have
a custom taxonomy, for example, called class-formation, that is
shared for two Custom Post Types. On of them is the product CPT
created by WooCommerce, and the another one is custom made for
the project.  I can assing the taxonomy to both CPT's. But the
problem is when I try to access the taxonomy archive for class-
formation, I didn't got a 404 not found error, but none posts
are returned (have_posts() returns false) . And a weird thing is
happening too: on this page, every custom menu that I have
generated using wp_nav_menu is missing (I tested with some
themes to check if was a theme related issue, but the behavior
is the same).  What I'm doing:  in my functions.php   //
registering the taxonomy "class-formation" function
theme_register_taxonomy(){      $labels = apply_filters(
'tax_class_formation_labels' ,array(         'name'
=> _x( 'Formações Acadêmicas', 'Taxonomy General Name',
'theme_slug' ),         'singular_name'