Hi.. i can't figure this out and not sure if it's actually possible.
On my index page i'm trying to have just 1 news post (which is truncated with a readmore link..) and then a list of headlines with dates on the right.
I guess i just use the news loop for the headline list - how do i limit that list to say..the 5 most recent?
And then for the news article.. how do i just display the latest one?
Remember this is all on the same page. I tried using 2 news loops and they conflicted.
Thanks for any help!!
uhh.. nevermind, i understand it now.
However, is there a way to get it to only display news? It seems to be displaying both news and album updates. I figure i could just define a category to keep it to news, but i need multiple news categories so that won't work. Is there a way to define a type of news?
this is my line so far:
Btw you don't need to write ?php printLatestNews($number='1'); ?>but ?php printLatestNews(1); ?>. I suggest taking a look here maybe: http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Several possibilites:
getLatestNews() to write your own custom output function (basically all functions have a get equivalent for that reason). You will of course need php knowledge to manage that.