Add additional query names

This commit is contained in:
Tetrakern 2023-09-15 14:00:44 +02:00
parent 6a0900e56e
commit 9fb5390fca
12 changed files with 12 additions and 3 deletions

View File

@ -248,7 +248,7 @@ function fictioneer_ajax_get_finished_checkmarks_list() {
$list_items = fictioneer_get_card_list(
'story',
array(
'fictioneer_query_name' => "bookshelf_finished",
'fictioneer_query_name' => 'bookshelf_finished',
'post__in' => $post_ids,
'paged' => $page,
'order' => $order

View File

@ -397,7 +397,7 @@ function fictioneer_ajax_get_follows_list() {
$list_items = fictioneer_get_card_list(
'story',
array(
'fictioneer_query_name' => "bookshelf_follows",
'fictioneer_query_name' => 'bookshelf_follows',
'post__in' => $post_ids,
'paged' => $page,
'order' => $order

View File

@ -174,7 +174,7 @@ function fictioneer_ajax_get_reminders_list() {
$list_items = fictioneer_get_card_list(
'story',
array(
'fictioneer_query_name' => "bookshelf_reminders",
'fictioneer_query_name' => 'bookshelf_reminders',
'post__in' => $post_ids,
'paged' => $page,
'order' => $order

View File

@ -33,6 +33,7 @@ $card_counter = 0;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_chapters_compact',
'post_type' => 'fcn_chapter',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -34,6 +34,7 @@ $card_counter = 0;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_chapters',
'post_type' => 'fcn_chapter',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -26,6 +26,7 @@ defined( 'ABSPATH' ) OR exit;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_posts',
'post_type' => 'post',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -30,6 +30,7 @@ $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_recommendation_c
// Prepare query
$query_args = array (
'fictioneer_query_name' => 'latest_recommendations_compact',
'post_type' => 'fcn_recommendation',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -31,6 +31,7 @@ $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_recommendation_c
// Prepare query
$query_args = array (
'fictioneer_query_name' => 'latest_recommendations',
'post_type' => 'fcn_recommendation',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -31,6 +31,7 @@ $show_taxonomies = ! get_option( 'fictioneer_hide_taxonomies_on_story_cards' );
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_stories_compact',
'post_type' => 'fcn_story',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -28,6 +28,7 @@ defined( 'ABSPATH' ) OR exit;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_stories',
'post_type' => 'fcn_story',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -34,6 +34,7 @@ $card_counter = 0;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_updates_compact',
'post_type' => 'fcn_story',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!

View File

@ -36,6 +36,7 @@ $card_counter = 0;
// Prepare query
$query_args = array(
'fictioneer_query_name' => 'latest_updates',
'post_type' => 'fcn_story',
'post_status' => 'publish',
'post__in' => $args['post_ids'], // May be empty!