RSS didn't work!

git-svn-id: http://svn.automattic.com/wordpress/trunk@183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-06-07 06:27:13 +00:00
parent 6e08cdf772
commit 5755d4d4e6
3 changed files with 4 additions and 4 deletions

View File

@ -32,14 +32,14 @@ if (!isset($rss_language)) { $rss_language = 'en'; }
<items> <items>
<rdf:Seq> <rdf:Seq>
<?php $items_count = 0; while($row = mysql_fetch_object($result)) { start_b2(); ?> <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>
<rdf:li rdf:resource="<?php permalink_single_rss() ?>"/> <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
<?php $b2_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } ?> <?php $b2_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } ?>
</rdf:Seq> </rdf:Seq>
</items> </items>
</channel> </channel>
<?php foreach($b2_items as $row) { start_b2(); ?> <?php foreach ($posts as $post) { start_b2(); ?>
<item rdf:about="<?php permalink_single_rss() ?>"> <item rdf:about="<?php permalink_single_rss() ?>">
<title><?php the_title_rss() ?></title> <title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link> <link><?php permalink_single_rss() ?></link>

View File

@ -20,7 +20,7 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng
<webMaster><?php echo $admin_email ?></webMaster> <webMaster><?php echo $admin_email ?></webMaster>
<language><?php echo $rss_language ?></language> <language><?php echo $rss_language ?></language>
<?php $items_count = 0; while($row = mysql_fetch_object($result)) { start_b2(); ?> <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>
<item> <item>
<title><?php the_title_rss() ?></title> <title><?php the_title_rss() ?></title>
<?php <?php

View File

@ -30,7 +30,7 @@ if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_leng
<sy:updateFrequency>1</sy:updateFrequency> <sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<?php $items_count = 0; while($row = mysql_fetch_object($result)) { start_b2(); ?> <?php $items_count = 0; foreach ($posts as $post) { start_b2(); ?>
<item rdf:about="<?php permalink_single_rss() ?>"> <item rdf:about="<?php permalink_single_rss() ?>">
<title><?php the_title_rss() ?></title> <title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link> <link><?php permalink_single_rss() ?></link>