$daily, 'daily_range' => tptn_get_option( 'feed_daily_range' ), 'limit' => tptn_get_option( 'feed_limit' ), ); $topposts = get_tptn_posts( $settings ); $topposts = wp_list_pluck( (array) $topposts, 'postnumber' ); $args = array( 'post__in' => $topposts, 'orderby' => 'post__in', 'posts_per_page' => count( $topposts ), ); query_posts( $args ); // phpcs:ignore WordPress.WP.DiscouragedFunctions.query_posts_query_posts header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true ); $more = 1; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited echo ''; /** * Fires between the xml and rss tags in a feed. * * @since 4.0.0 * * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', * 'rdf', 'atom', and 'atom-comments'. */ do_action( 'rss_tag_pre', 'rss2' ); ?> > <?php wp_title_rss(); ?> <?php the_title_rss(); ?> ]]> ]]> ]]> 0 ) : ?> ]]> ]]>