Hey all,
My first post - yippee!
Apologies if this has been explained somewhere...
I'd like to have a home page (which is not the blog's home page - the blog is in a separate page in a subdir from the home page) display the titles of the last three posts of the blog as a 'what's new' section. Clicking them would obviously go to that post.
Is there a query that I can use to insert the three newest titles (from all categories) on a home page?
I hope that makes sense...
Thanks for any info.
_Bhaal
OK, I found the answer: the code I need is in summary.php (thanks mr. b2 author for including this file!).
The code is here:
One more question:
Is there an easy way to truncate the post title that is displayed in the code above to just 30 characters - followed by '...' if there are more than 30 chars in the title?
I know that substr() function can truncate a database entry, so it would be something like this:
But I've tried it and it didn't work.
Any help would be greatly appreciated.