Skip to content

Commit

Permalink
don't filter the_title on admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Nov 27, 2024
1 parent b3911e7 commit f848802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/themes/mediasanctuary/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f848802

Please sign in to comment.