I've been writing up some code which enables two post types to share a custom taxonomy. From the admin side, it works fantastically - but for some reason, when I look at the taxonomy archive itself on the site,
/country/{country} , despite the fact that there are two posts (one from each type) in the taxonomy, it comes back with 'No posts found' but not a 404 error. I wonder if I've missed something to make it work - my code is below.
register_taxonomy(
'country',
array('hotels', 'attractions'),
array(
'label' => __( 'Country' ),
'hierarchical' => true,
'sort' => true,
'args' => array( 'orderby' => 'term_order' ),
'rewrite' => array( 'slug' => 'country' )
)
);
