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

git-svn-id: https://develop.svn.wordpress.org/trunk@302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little 2003-08-08 23:07:25 +00:00
parent 6e668e1fce
commit 8ab54d6833
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'));