Add more name args to queries
This commit is contained in:
parent
4fe4a45e5a
commit
7f7a1c7134
@ -56,6 +56,7 @@ if ( ! function_exists( 'fictioneer_get_card_list' ) ) {
|
|||||||
|
|
||||||
// Default query arguments
|
// Default query arguments
|
||||||
$the_query_args = array(
|
$the_query_args = array(
|
||||||
|
'fictioneer_query_name' => 'get_card_list',
|
||||||
'post_type' => $post_type,
|
'post_type' => $post_type,
|
||||||
'post_status' => 'publish',
|
'post_status' => 'publish',
|
||||||
'orderby' => 'modified',
|
'orderby' => 'modified',
|
||||||
|
@ -133,6 +133,7 @@ do_action( 'rss_tag_pre', 'rss2' );
|
|||||||
|
|
||||||
// Query
|
// Query
|
||||||
$query_args = array(
|
$query_args = array(
|
||||||
|
'fictioneer_query_name' => 'story_rss',
|
||||||
'post_type' => 'fcn_chapter',
|
'post_type' => 'fcn_chapter',
|
||||||
'post_status' => 'publish',
|
'post_status' => 'publish',
|
||||||
'post__in' => $chapters,
|
'post__in' => $chapters,
|
||||||
|
@ -28,6 +28,7 @@ if ( $transient ) {
|
|||||||
if ( empty( $sorted_stories ) ) {
|
if ( empty( $sorted_stories ) ) {
|
||||||
// Query all stories
|
// Query all stories
|
||||||
$args = array(
|
$args = array(
|
||||||
|
'fictioneer_query_name' => 'story_index_advanced',
|
||||||
'post_type' => 'fcn_story',
|
'post_type' => 'fcn_story',
|
||||||
'post_status' => ['publish'],
|
'post_status' => ['publish'],
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
@ -28,6 +28,7 @@ if ( $transient ) {
|
|||||||
if ( empty( $sorted_stories ) ) {
|
if ( empty( $sorted_stories ) ) {
|
||||||
// Query all stories
|
// Query all stories
|
||||||
$args = array(
|
$args = array(
|
||||||
|
'fictioneer_query_name' => 'story_index',
|
||||||
'post_type' => 'fcn_story',
|
'post_type' => 'fcn_story',
|
||||||
'post_status' => ['publish'],
|
'post_status' => ['publish'],
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user