From bdf344f19158a980a99dcca7c82c6e34e84533c0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 03:05:03 +0000
Subject: [PATCH] =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
---
inc/blocks/SimpleCalendarBlock.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inc/blocks/SimpleCalendarBlock.php b/inc/blocks/SimpleCalendarBlock.php
index 24e8a5d..28b97c7 100644
--- a/inc/blocks/SimpleCalendarBlock.php
+++ b/inc/blocks/SimpleCalendarBlock.php
@@ -230,7 +230,7 @@
$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())
@@ -366,7 +366,7 @@
if (is_singular()) {
return $this->formatSingular();
}
-
+
$items = new WP_Query($this->buildArgs($past));
$events = implode('', array_map([$this, 'formatItem'], $items->posts));
--
Gitblit v1.10.0