Re: [Dave] RSS Feed Setup
Hi, Dave.
I'm using the following code on a client's site, which is working fine:
<?php foreach ($top_storiesRecords as $record): ?>
<item>
<title><?php echo htmlspecialchars($record['title']) ?></title>
<link>http://www.yallaf1.com<?php echo $record['_link'] ?></link>
<description><?php echo htmlspecialchars($record['introduction']); ?></description>
<pubDate><?php echo date("r", strtotime($record['date'])) ?></pubDate>
<guid isPermaLink="true">http://www.yallaf1.com<?php echo $record['_link'] ?></guid>
</item>
<?php endforeach ?>
The client wants to also include the first 250 characters from the main text of the article. Can you tell me how to do this, please?
This is the article code:
<?php echo $top_storiesRecord['content'] ?>
Kind regards,
Nigel Gordijk
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net