updated author page

This commit is contained in:
Tetrakern 2023-08-08 13:38:11 +02:00
parent cbb5c061bf
commit 390b6b2fe2
2 changed files with 14 additions and 1 deletions

View File

@ -103,7 +103,9 @@ $tabs['recommendations'] = array(
);
// Use first tab if queried tab is not available
if ( ! array_key_exists( $current_tab, $tabs ) ) $current_tab = array_key_first( $tabs );
if ( ! array_key_exists( $current_tab, $tabs ) ) {
$current_tab = array_key_first( $tabs );
}
// Select tab
$tabs[ $current_tab ]['classes'][] = '_current';

View File

@ -333,6 +333,17 @@ if ( ! function_exists( 'fictioneer_get_author_statistics' ) ) {
'numberposts' => -1,
'orderby' => 'modified',
'order' => 'DESC',
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'fictioneer_story_hidden',
'value' => '0'
),
array(
'key' => 'fictioneer_story_hidden',
'compare' => 'NOT EXISTS'
),
),
'update_post_term_cache' => false
)
);