From f84880276f396faba5b66b577503e9d90395783d Mon Sep 17 00:00:00 2001 From: Dan Phiffer Date: Wed, 27 Nov 2024 09:20:17 -0500 Subject: [PATCH] don't filter the_title on admin pages --- wp-content/themes/mediasanctuary/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/mediasanctuary/functions.php b/wp-content/themes/mediasanctuary/functions.php index 104710ec..4ae2f939 100644 --- a/wp-content/themes/mediasanctuary/functions.php +++ b/wp-content/themes/mediasanctuary/functions.php @@ -328,7 +328,7 @@ function is_story_post($post) { } add_filter('the_title', function($title, $post) { - if (get_field('special_episode', $post)) { + if (!is_admin() && get_field('special_episode', $post)) { return get_field('special_episode_title', $post); } return $title;