updated author page
This commit is contained in:
parent
cbb5c061bf
commit
390b6b2fe2
@ -103,7 +103,9 @@ $tabs['recommendations'] = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Use first tab if queried tab is not available
|
// 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
|
// Select tab
|
||||||
$tabs[ $current_tab ]['classes'][] = '_current';
|
$tabs[ $current_tab ]['classes'][] = '_current';
|
||||||
|
@ -333,6 +333,17 @@ if ( ! function_exists( 'fictioneer_get_author_statistics' ) ) {
|
|||||||
'numberposts' => -1,
|
'numberposts' => -1,
|
||||||
'orderby' => 'modified',
|
'orderby' => 'modified',
|
||||||
'order' => 'DESC',
|
'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
|
'update_post_term_cache' => false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user