From f901320b3d9a7dbbc07e126ae881d958aa620d7c Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Sun, 12 Nov 2023 01:16:07 +0100 Subject: [PATCH] Improve query for author stories --- author.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/author.php b/author.php index 03d43de1..9acf6879 100644 --- a/author.php +++ b/author.php @@ -45,18 +45,7 @@ $tabs['stories'] = array( 'author' => $author_id, 'orderby' => 'modified', 'paged' => $current_page, - 'order' => $order, - 'meta_query' => array( - 'relation' => 'OR', - array( - 'key' => 'fictioneer_story_hidden', - 'value' => '0' - ), - array( - 'key' => 'fictioneer_story_hidden', - 'compare' => 'NOT EXISTS' - ), - ) + 'order' => $order ), 'classes' => [], 'empty' => __( 'No stories published yet.', 'fictioneer' )