Improve query for author stories
This commit is contained in:
parent
426ae29f10
commit
f901320b3d
13
author.php
13
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' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user