'wprss_feed_item', 'post_status' => 'publish', 'cache_results' => false, // disable caching ) );*/ $wprss_custom_feed_query = wprss_get_feed_items_query( apply_filters( 'wprss_custom_feed_query', array( 'get-args' => TRUE, // Get the query args instead of the query object 'no-paged' => TRUE, // ignore pagination 'feed_limit' => 0, // ignore limit ) ) ); // Suppress caching $wprss_custom_feed_query['cache_results'] = FALSE; // Get options $options = get_option( 'wprss_settings_general' ); if ( $options !== FALSE ) { // If options exist, get the limit $limit = $options['custom_feed_limit']; if ( $limit !== FALSE ) { // if limit exists, set the query limit $wprss_custom_feed_query['posts_per_page'] = $limit; } } // Submit the query to get latest feed items query_posts( $wprss_custom_feed_query ); $custom_feed_title = wprss_get_general_setting( 'custom_feed_title' ); $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0'); header( "$protocol 200 OK" ); // Send content header and start ATOM output header('Content-Type: application/rss+xml'); // Disabling caching header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1. header('Pragma: no-cache'); // HTTP 1.0. header('Expires: 0'); // Proxies. echo ''; ?> <?php echo $custom_feed_title; ?> " rel="self" type="application/rss+xml" /> <![CDATA[<?php the_title_rss(); ?>]]> ]]> ]]>