From 29d96d5f100d9f7c82c7b0ea0b5170a0718c0c32 Mon Sep 17 00:00:00 2001 From: Doman Date: Mon, 20 Jan 2025 22:06:02 +0100 Subject: [PATCH] Quick and dirty fix for feed link on archive by month. --- inc/template-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/template-functions.php b/inc/template-functions.php index 04719d8..68fd79e 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -139,11 +139,13 @@ function analog_get_feeds_link() { elseif( is_post_type_archive() ) { $link = get_post_type_archive_feed_link( $item->name ); } + elseif( is_month() || is_year() || is_day() ) { + $link = "/feed"; // pretty rough, but no error at least + } return $link; } - /** * Remove prefix from archive title * @see: https://developer.wordpress.org/reference/functions/get_the_archive_title/