Add comments orderby to sort-and-filter options

This commit is contained in:
Tetrakern 2024-11-26 01:20:37 +01:00
parent e054224951
commit 9ea18e184e

View File

@ -653,6 +653,10 @@ function fictioneer_sort_order_filter_interface( $args ) {
'title' => array(
'label' => _x( 'Title', 'Sort and filter option.', 'fictioneer' ),
'url' => add_query_arg( array( 'orderby' => 'title' ), $current_url ) . '#sof'
),
'comment_count' => array(
'label' => _x( 'Comments', 'Sort and filter option.', 'fictioneer' ),
'url' => add_query_arg( array( 'orderby' => 'comment_count' ), $current_url ) . '#sof'
)
);