Main RSS Feed does not cover all posts

Haha, this has been broken for forever... hahaha... ha
This commit is contained in:
Tetrakern 2023-06-13 11:22:39 +02:00
parent 91cc419ccd
commit b57bb50c59

View File

@ -1,6 +1,6 @@
<?php
/**
* RSS2 Feed Template to display the latest posts.
* RSS2 Feed Template to display the latest content.
*
* @package WordPress
* @subpackage Fictioneer
@ -15,9 +15,32 @@ $posts = new WP_Query(
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'DESC',
'meta_key' => 'fictioneer_chapter_hidden',
'meta_value' => '0',
'posts_per_page' => get_option( 'posts_per_rss' ),
'meta_query' => array(
'relation' => 'AND',
array(
'relation' => 'OR',
array(
'key' => 'fictioneer_chapter_hidden',
'value' => '0'
),
array(
'key' => 'fictioneer_chapter_hidden',
'compare' => 'NOT EXISTS'
)
),
array(
'relation' => 'OR',
array(
'key' => 'fictioneer_story_hidden',
'value' => '0'
),
array(
'key' => 'fictioneer_story_hidden',
'compare' => 'NOT EXISTS'
)
)
),
'no_found_rows' => true
)
);