Make WordPress Core

Changeset 2860


Ignore:
Timestamp:
09/08/2005 10:02:14 PM (19 years ago)
Author:
ryan
Message:

Update loop in rdf. Props Leffe. fixes #1542

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-rdf.php

    r2627 r2860  
    3333    <items>
    3434        <rdf:Seq>
    35         <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     35        <?php while (have_posts()): the_post(); ?>
    3636            <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
    37         <?php $wp_items[] = $row; $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
     37        <?php endwhile; ?>
    3838        </rdf:Seq>
    3939    </items>
    4040</channel>
    41 <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
     41<?php rewind_posts(); while (have_posts()): the_post(); ?>
    4242<item rdf:about="<?php permalink_single_rss() ?>">
    4343    <title><?php the_title_rss() ?></title>
     
    5454    <?php do_action('rdf_item'); ?>
    5555</item>
    56 <?php } }  ?>
     56<?php endwhile;  ?>
    5757</rdf:RDF>
Note: See TracChangeset for help on using the changeset viewer.