Add more name args to queries

This commit is contained in:
Tetrakern 2024-10-28 18:29:37 +01:00
parent 4fe4a45e5a
commit 7f7a1c7134
4 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,7 @@ if ( ! function_exists( 'fictioneer_get_card_list' ) ) {
// Default query arguments
$the_query_args = array(
'fictioneer_query_name' => 'get_card_list',
'post_type' => $post_type,
'post_status' => 'publish',
'orderby' => 'modified',

View File

@ -133,6 +133,7 @@ do_action( 'rss_tag_pre', 'rss2' );
// Query
$query_args = array(
'fictioneer_query_name' => 'story_rss',
'post_type' => 'fcn_chapter',
'post_status' => 'publish',
'post__in' => $chapters,

View File

@ -28,6 +28,7 @@ if ( $transient ) {
if ( empty( $sorted_stories ) ) {
// Query all stories
$args = array(
'fictioneer_query_name' => 'story_index_advanced',
'post_type' => 'fcn_story',
'post_status' => ['publish'],
'posts_per_page' => -1,

View File

@ -28,6 +28,7 @@ if ( $transient ) {
if ( empty( $sorted_stories ) ) {
// Query all stories
$args = array(
'fictioneer_query_name' => 'story_index',
'post_type' => 'fcn_story',
'post_status' => ['publish'],
'posts_per_page' => -1,