Fixed to use posts_per_rss. See http://wordpress.org/support/3/419

git-svn-id: http://svn.automattic.com/wordpress/trunk@302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-08-08 23:07:25 +00:00
parent 6bc90de79c
commit 0b12a1a923
4 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
$blog = 1; // enter your blog's ID
$doing_rss=1;
header('Content-type: text/xml');
include('blog.header.php');
add_filter('the_content', 'trim');

View File

@ -1,6 +1,7 @@
<?php /* These first lines are the first part of a CaféLog template.
In every template you do, you got to copy them before the CaféLog 'loop' */
$blog = 1; // enter your blog's ID
$doing_rss=1;
header('Content-type: text/xml');
include('blog.header.php');
if (!isset($rss_language)) { $rss_language = 'en'; }

View File

@ -1,6 +1,7 @@
<?php /* These first lines are the first part of a WordPress template.
In every template you do, you got to copy them before the CafeLog 'loop' */
$blog=1; // enter your blog's ID
$doing_rss=1;
header('Content-type: text/xml');
include('blog.header.php');
if (!isset($rss_language)) { $rss_language = 'en'; }

View File

@ -41,7 +41,10 @@ $b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search
@header ("X-Pingback: $siteurl/xmlrpc.php");
/* Getting settings from db */
$posts_per_page = get_settings('posts_per_page');
if ($doing_rss == 1)
$posts_per_page=get_settings('posts_per_rss');
if ($posts_per_page == 0)
$posts_per_page = get_settings('posts_per_page');
$what_to_show = get_settings('what_to_show');
$archive_mode = get_settings('archive_mode');
$dateformat = stripslashes(get_settings('date_format'));