Changeset 2251
- Timestamp:
- 02/11/05 01:09:34 (4 years ago)
- Files:
-
- trunk/wp-commentsrss2.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-commentsrss2.php
r2250 r2251 15 15 <?php 16 16 $i = 0; 17 if ($posts) { foreach ($posts as $post) { start_wp(); 17 if (have_posts()) : 18 while (have_posts()) : the_post(); 18 19 if ($i < 1) { 19 20 $i++; 20 21 ?> 21 <title><?php if (is_single() ) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>22 <title><?php if (is_single() || is_page()) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title> 22 23 <link><?php (is_single()) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 23 24 <description><?php bloginfo_rss("description") ?></description> … … 26 27 27 28 <?php 28 if (is_single()) {29 if (is_single() || is_page()) { 29 30 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, 30 31 comment_author_url, comment_date, comment_content, comment_post_ID, … … 69 70 } 70 71 } 71 } } 72 endwhile; endif; 72 73 ?> 73 74 </channel>
