=Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite
| | |
| | | |
| | | $dates = $this->getDateNavigation(); |
| | | |
| | | if (!is_post_type_archive($this->firstContent()) || $this->isDatedArchive()) { |
| | | if (is_tax() || !is_post_type_archive($this->firstContent()) || $this->isDatedArchive()) { |
| | | echo sprintf( |
| | | '<a href="%s" class="btn chip">All Events</a>', |
| | | get_post_type_archive_link($this->firstContent()) |
| | |
| | | 'supports' => [ 'title', 'editor', 'custom-fields'], |
| | | 'hierarchical' => true, |
| | | 'has_archive' => true, |
| | | 'public' => false, |
| | | ])->setAll([ |
| | | 'system' |
| | | ]); |