=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()) |
| | |
| | | if (is_singular()) { |
| | | return $this->formatSingular(); |
| | | } |
| | | |
| | | |
| | | $items = new WP_Query($this->buildArgs($past)); |
| | | |
| | | $events = implode('', array_map([$this, 'formatItem'], $items->posts)); |
| | |
| | | 'supports' => [ 'title', 'editor', 'custom-fields'], |
| | | 'hierarchical' => true, |
| | | 'has_archive' => true, |
| | | 'public' => false, |
| | | ])->setAll([ |
| | | 'system' |
| | | ]); |