From 2914a90e7bc3b6657c2f85c39cb7fc3ed103fe2c Mon Sep 17 00:00:00 2001 From: Marco Hitschler Date: Sun, 31 Aug 2025 14:01:57 +0200 Subject: [PATCH] Force CPT in Tag Archives --- readme.md | 1 + unmus_archives.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1ea1a43..1290783 100644 --- a/readme.md +++ b/readme.md @@ -225,6 +225,7 @@ Release pending. * Added: Fade out WB REST CACHE Icon @ Admin Bar * Added: Disable UpdraftPlus @ Admin Bar * Fixed: Content Type Return @ WP REST CACHE +* Fixed: Force CPTs in Tag Archives * Changed: Remove Mastodon Account @ Federated Comment extended with Mentions ### 0.8 diff --git a/unmus_archives.php b/unmus_archives.php index fcca917..e363685 100644 --- a/unmus_archives.php +++ b/unmus_archives.php @@ -20,7 +20,7 @@ function unmus_custom_post_types_archives($query) { - if ( $query->is_author OR $query->is_date ) { + if ( $query->is_author OR $query->is_date OR $query->is_tag ) { $query->set( 'post_type', array( 'ello',