View previous topic :: View next topic |
Author |
Message |
Jackal Guest
|
Posted: Tue Oct 22, 2002 6:12 pm Post subject: Date to in RSS file |
|
|
I would like to have the date displayed in my RSS file prior to the title followed by the description. Any ideas? I tried <?php the_date() ?> but think I have got it in the wrong area or something.
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<item>
<?php the_date() ?>
<title><?php the_title_rss() ?></title><?php
// we might use this in the future, but not now, that's why it's commented in PHP
// so that it doesn't appear at all in the RSS
// echo "<category>"; the_category_unicode(); echo "</category>"; ?>
<description><?php the_content_rss() ?></description>
<link><?php permalink_single_rss() ?></link>
</item>
<?php } ?>
</channel>
</rss> |
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Tue Oct 29, 2002 5:34 pm Post subject: |
|
|
It should be like this instead:
[php:1:3e463e95ed]<title><?php the_date() ?> <?php the_title_rss() ?></title>[/php:1:3e463e95ed]
Or to display it on every item, like this:
[php:1:3e463e95ed]<title><?php the_time('Y.m.d') ?> <?php the_title_rss() ?></title>[/php:1:3e463e95ed] |
|
Back to top |
|
 |
|