displaying body in front page

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rs3

displaying body in front page

Post by rs3 »

Code: Select all

<?php
$current_path = getcwd();
chdir('/path/to/your/s9y/');
include_once('serendipity_config.inc.php');
$entries = serendipity_fetchEntries(null, true, 1);
echo {$entries[0]['body']};
chdir($current_path);
?> 
i used above code to display body of the my latest entry in the frontpage of my website. But it displays all the body as one paragraph even if it has several paragraphs. How can I restore the orginal paragraphs in the front page? If it is not possible to restore the original paragraphs, will it be possible to display only the first paragraph in the frontpage, instead of the whole body?

thank you very much
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: displaying body in front page

Post by garvinhicking »

Please do not crosspost questions. I've answered in the other thread you asked in.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply