Make WordPress Core

Changeset 18 for trunk/b2rss2.php


Ignore:
Timestamp:
05/06/2003 10:16:07 PM (24 years ago)
Author:
mikelittle
Message:

Added rss_use_excerpt flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2rss2.php

    r3 r18  
    3838                <dc:subject><?php the_category_rss() ?></dc:subject>
    3939                <guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid>
     40<?php if ($rss_use_excerpt) {
     41?>
     42                <description><?php the_excerpt_rss($rss_excerpt_length, 2) ?></description>
     43<?php
     44} else { // use content
     45?>
    4046                <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>
     47<?php
     48} // end else use content
     49?>
    4150                <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
    4251        </item>
Note: See TracChangeset for help on using the changeset viewer.