Add names to chapter post queries

Might be useful to some.
This commit is contained in:
Tetrakern 2024-04-08 01:55:46 +02:00
parent a2cdaa60d9
commit b967e2a68d

View File

@ -191,6 +191,7 @@ function fictioneer_get_story_chapter_posts( $story_id ) {
// as long as the ID array is not too large.
$chapter_query = new WP_Query(
array(
'fictioneer_query_name' => 'get_story_chapter_posts_by_post__in',
'post_type' => 'fcn_chapter',
'post_status' => 'publish',
'post__in' => fictioneer_rescue_array_zero( $chapter_ids ),
@ -208,6 +209,7 @@ function fictioneer_get_story_chapter_posts( $story_id ) {
// Query
$chapter_query = new WP_Query(
array(
'fictioneer_query_name' => 'get_story_chapter_posts_by_meta',
'post_type' => 'fcn_chapter',
'post_status' => 'publish',
'meta_key' => 'fictioneer_chapter_story',