From 2b824ba1d2de6d1e0d1f02941611a4a110ffeddf Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Mon, 12 Aug 2024 01:33:57 +0200 Subject: [PATCH] Account for hidden story flag in singular-story --- singular-story.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/singular-story.php b/singular-story.php index 745673f3..8474647c 100644 --- a/singular-story.php +++ b/singular-story.php @@ -20,7 +20,12 @@ if ( ! $story_id ) { } // Header -get_header(); +get_header( + null, + array( + 'no_index' => get_post_meta( $story_id, 'fictioneer_story_hidden', true ) ? 1 : 0 + ) +); ?>