From 7f7a1c7134adc84f3088091c92528d4f4a633cea Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:29:37 +0100 Subject: [PATCH] Add more name args to queries --- includes/functions/_helpers-query.php | 1 + rss-rss-story.php | 1 + singular-index-advanced.php | 1 + singular-index.php | 1 + 4 files changed, 4 insertions(+) diff --git a/includes/functions/_helpers-query.php b/includes/functions/_helpers-query.php index fbfb8dc4..ad2cd4d0 100644 --- a/includes/functions/_helpers-query.php +++ b/includes/functions/_helpers-query.php @@ -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', diff --git a/rss-rss-story.php b/rss-rss-story.php index 5c0ea875..803b559a 100644 --- a/rss-rss-story.php +++ b/rss-rss-story.php @@ -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, diff --git a/singular-index-advanced.php b/singular-index-advanced.php index 43d07da1..f63558b8 100644 --- a/singular-index-advanced.php +++ b/singular-index-advanced.php @@ -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, diff --git a/singular-index.php b/singular-index.php index 6d0d7233..97c71ad7 100644 --- a/singular-index.php +++ b/singular-index.php @@ -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,